Elgg  Version master
all.php
Go to the documentation of this file.
1 <?php
9  'distinct' => false,
10 ];
11 
12 $options = (array) elgg_extract('options', $vars, []);
13 $options = array_merge($defaults, $options);
14 
15 if (empty($options['type']) && empty($options['subtype'])) {
16  throw new \Elgg\Exceptions\InvalidArgumentException("Missing 'type' and 'subtype' in the listing options");
17 }
18 
$options
Definition: all.php:13
$defaults
Generic view for entity listing.
Definition: all.php:8
$vars['options']
Definition: all.php:32
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:246
elgg_list_entities(array $options=[], ?callable $getter=null, ?callable $viewer=null)
Returns a string of rendered entities.
Definition: entities.php:551