28 $return = $event->getValue();
32 'text' =>
elgg_echo(
'admin:upgrades:menu:pending'),
33 'href' =>
'admin/upgrades',
38 'name' =>
'completed',
39 'text' =>
elgg_echo(
'admin:upgrades:menu:completed'),
40 'href' =>
'admin/upgrades/finished',
46 'text' =>
elgg_echo(
'admin:upgrades:menu:db'),
47 'href' =>
'admin/upgrades/db',
72 'text' =>
elgg_echo(
'usersettings:notifications:menu:filter:settings'),
81 'text' =>
elgg_echo(
'collection:user:user'),
100 $entity_type = $event->getParam(
'entity_type',
'');
101 $entity_subtype = $event->getParam(
'entity_subtype',
'');
102 if (empty($entity_type) || empty($entity_subtype)) {
104 if (!empty($route_name)) {
108 $route_parts = explode(
':', $route_name);
114 $all_link = $event->getParam(
'all_link');
115 if (empty($all_link)) {
117 $all_link =
elgg_generate_url(
"collection:{$entity_type}:{$entity_subtype}:all");
123 if (!empty($all_link)) {
134 $mine_link = $event->getParam(
'mine_link');
135 if (empty($mine_link)) {
137 $mine_link =
elgg_generate_url(
"collection:{$entity_type}:{$entity_subtype}:owner", [
138 'username' =>
$user->username,
142 'username' =>
$user->username,
147 if (!empty($mine_link)) {
151 'href' => $mine_link,
174 'href' =>
'admin/users',
179 'text' =>
elgg_echo(
'admin:users:online'),
180 'href' =>
'admin/users/online',
185 'text' =>
elgg_echo(
'admin:users:admins'),
186 'href' =>
'admin/users/admins',
191 'text' =>
elgg_echo(
'admin:users:banned'),
192 'href' =>
'admin/users/banned',
196 'name' =>
'unvalidated',
197 'text' =>
elgg_echo(
'admin:users:unvalidated'),
198 'href' =>
'admin/users/unvalidated',
202 'name' =>
'inactive',
203 'text' =>
elgg_echo(
'admin:users:inactive'),
204 'href' =>
'admin/users/inactive',
213 'class' =>
'elgg-toggle',
214 'data-toggle-selector' =>
'.elgg-form-admin-users-search',
235 $return = $event->getValue();
238 'name' =>
'edit_avatar',
elgg_route_exists(string $name)
Check if a route is registered.
elgg_is_admin_logged_in()
Returns whether or not the viewer is currently logged in and an admin user.
elgg_get_current_route_name()
Get the route name for the current request.
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
if($item instanceof\ElggEntity) elseif($item instanceof\ElggRiverItem) elseif($item instanceof\ElggRelationship) elseif(is_callable([$item, 'getType']))
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
elgg_generate_entity_url(ElggEntity $entity, string $resource= 'view', string $subresource=null, array $parameters=[])
Generate entity URL from a named route.
elgg_get_page_owner_entity()
Gets the owner entity for the current page.
elgg_generate_url(string $name, array $parameters=[])
Generate a URL for named route.
elgg_get_logged_in_user_entity()
Return the current logged in user, or null if no user is logged in.
Models an event passed to event handlers.