Elgg  Version 5.1
unvalidated_menu.php
Go to the documentation of this file.
1 <?php
11 if (!$item instanceof \ElggUser) {
12  return;
13 }
14 
15 echo elgg_view_menu('user:unvalidated', [
16  'entity' => $item,
17  'prepare_dropdown' => true,
18  'class' => 'elgg-menu-entity', // for the dropdown elipsis styling
19 ]);
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:254
elgg_view_menu($menu, array $vars=[])
Render a menu.
Definition: views.php:462
$item
Render an unvalidated menu element.
$vars
Definition: theme.php:5