Go to the source code of this file.
$container = $entity->getContainerEntity() |
if (!$entity instanceof\ElggEntity) if (!$entity->canDelete()||!$entity->hasCapability('restorable')||$entity instanceof\ElggPlugin||$entity instanceof\ElggSite||$entity instanceof\ElggUser) $display_name = $entity->getDisplayName() ?: elgg_echo('entity:delete:item') |
if (!$entity->delete(true, false)) $forward_url = get_input('forward_url') |
Default entity trash action.
Definition at line 6 of file trash.php.
$subtype = $entity->getSubtype() |
if (!empty($forward_url)) if (empty($forward_url)) $success_keys |
Initial value:= [
"entity:delete:{$type}:{$subtype}:success",
"entity:delete:{$type}:success",
'entity:delete:success',
]
Definition at line 78 of file trash.php.
$type = $entity->getType() |