14 "trash/{$entity->getType()}/{$entity->getSubtype()}",
15 "trash/{$entity->getType()}/default",
16 'trash/entity/default',
$entity
Entity view of an item in the trash.
if(!$entity instanceof\ElggEntity) $views
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.