33 $this->hooks = $hooks;
34 $this->config = $config;
60 $menus = $this->config->getVolatile(
'menus');
65 if ($menus && isset($menus[
$name])) {
74 if (!isset(
$params[
'sort_by'])) {
93 $sort_by =
$menu->getSortBy();
96 $params[
'menu'] = $builder->getMenu($sort_by);
97 $params[
'selected_item'] = $builder->getSelected();
118 $new_name = implode(
'__' , $names);
122 foreach ($names as
$name) {
126 $section =
$item->getSection();
127 if ($section ==
'default') {
131 $all_items[] =
$item;
147 $prepared_items = [];
150 if (is_array(
$item)) {
159 $prepared_items[] =
$item;
162 return $prepared_items;
if($guid==elgg_get_logged_in_user_guid()) $name
Access to configuration values.
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.