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'])) {
96 $params[
'menu'] = $builder->getMenu($sort_by);
99 $params[
'menu'] = $this->hooks->trigger(
'prepare',
"menu:$name", $params, $params[
'menu']);
101 return new Menu($params);
118 $new_name = implode(
'__' , $names);
122 foreach ($names as
$name) {
126 $section = $item->getSection();
127 if ($section ==
'default') {
128 $item->setSection($name);
130 $item->setData(
'menu_name', $name);
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.
http free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to use