30 echo json_encode(
$data);
elgg_view_image_block(string $image, string $body, array $vars=[])
Wrapper function for the image block display pattern.
elgg_get_viewtype()
Return the current view type.
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
elgg_view_entity_icon(\ElggEntity $entity, string $size= 'medium', array $vars=[])
View the icon of an entity.
elgg_set_viewtype(string $viewtype= '')
Manually set the viewtype.
if(!array_key_exists($size, $icon_sizes)) $vars['size']
$entity
Generic icon view.
if($user->isBanned()) elseif($user->isValidated()===false) $icon