Elgg  Version 4.3
entity_menu.php
Go to the documentation of this file.
1 <?php
11 if (!$item instanceof \ElggEntity) {
12  return;
13 }
14 
15 echo elgg_view_menu('entity', [
16  'entity' => $item,
17  'prepare_dropdown' => true,
18  'add_user_hover_admin_section' => (bool) elgg_extract('add_user_hover_admin_section', $vars, false),
19 ]);
elgg_view_menu($menu, array $vars=[])
Render a menu.
Definition: views.php:468
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:547
elgg echo
Translates a string.
Definition: deprecated.js:530
$vars['head']
Definition: html.php:24
$item
Render an entity menu element.
Definition: entity_menu.php:10