Elgg
Version 6.1
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
page
components
column
entity_menu.php
Go to the documentation of this file.
1
<?php
10
$item
=
elgg_extract
(
'item'
,
$vars
);
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_extract
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_menu
elgg_view_menu($menu, array $vars=[])
Render a menu.
Definition:
views.php:441
$vars
$vars
Definition:
theme.php:5
ElggEntity
Definition:
ElggEntity.php:52
$item
$item
Render an entity menu element.
Definition:
entity_menu.php:10
Generated on Wed Dec 4 2024 00:00:23 for Elgg by
1.8.11