12 "search/$type/$subtype",
13 "search/$type/default",
23 echo json_encode(
$entity->toObject());
$entity
Entity view of an item in the trash.
if(!$entity instanceof\ElggEntity) $views
if(!$entity instanceof ElggEntity) $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.
if(!empty($avatar)&&!$avatar->isValid()) elseif(empty($avatar)) if(!$owner->saveIconFromUploadedFile('avatar')) if(!elgg_trigger_event('profileiconupdate', $owner->type, $owner)) $view
elgg_view_exists(string $view, string $viewtype= '', bool $recurse=true)
Returns whether the specified view exists.