Elgg  Version 6.1
owner.php
Go to the documentation of this file.
1 <?php
9 $options = (array) elgg_extract('options', $vars);
10 $entity = elgg_extract('entity', $vars);
11 if (!$entity instanceof \ElggUser) {
12  return;
13 }
14 
16  'owner_guid' => $entity->guid,
17  'preload_owners' => false,
18 ];
19 
20 $vars['options'] = array_merge($options, $owner_options);
21 
22 echo elgg_view('trash/listing/all', $vars);
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:256
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition: views.php:156
if(!$entity instanceof\ElggUser) $vars['options']
Definition: owner.php:20
$options
List all the deleted entities of the given owner.
Definition: owner.php:9
$entity
Definition: owner.php:18
if(!$entity instanceof\ElggUser) $owner_options
Definition: owner.php:15