24 $entity = $event->getEntityParam();
31 $return = $event->getValue();
33 if ($return->get(
'edit')) {
44 if (empty($edit_url)) {
68 $entity = $event->getEntityParam();
81 $return = $event->getValue();
110 $entity = $event->getEntityParam();
123 $return = $event->getValue();
126 $return->remove(
'delete');
130 'icon' =>
'trash-alt',
151 $entity = $event->getEntityParam();
157 $return = $event->getValue();
166 'data-comment-guid' =>
$entity->guid,
180 $entity = $event->getEntityParam();
186 $return = $event->getValue();
190 'name' =>
'settings',
191 'icon' =>
'settings-alt',
194 'plugin_id' =>
$entity->getID(),
206 'icon' =>
'angle-double-up',
209 'plugin_guid' =>
$entity->guid,
210 'priority' =>
'first',
217 'icon' =>
'angle-up',
220 'plugin_guid' =>
$entity->guid,
231 'icon' =>
'angle-down',
234 'plugin_guid' =>
$entity->guid,
242 'icon' =>
'angle-double-down',
245 'plugin_guid' =>
$entity->guid,
246 'priority' =>
'last',
254 'name' =>
'remove_settings',
255 'icon' =>
'trash-alt',
256 'text' =>
elgg_echo(
'plugins:settings:remove:menu:text'),
258 'plugin_id' =>
$entity->getID(),
260 'confirm' =>
elgg_echo(
'plugins:settings:remove:menu:confirm'),
274 $entity = $event->getEntityParam();
284 'name' =>
'run_upgrade',
286 'text' =>
elgg_echo(
'admin:upgrades:menu:run_single'),
321 $entity = $event->getEntityParam();
326 if (!(
bool) $event->getParam(
'add_user_hover_admin_section',
false)) {
330 $user_hover =
elgg()->menus->getUnpreparedMenu(
'user_hover', [
338 foreach ($user_hover->getItems() as $menu_item) {
339 if ($menu_item->getSection() !==
'admin') {
343 $menu_item->setSection(
'default');
elgg_generate_action_url(string $action, array $query=[], bool $add_csrf_tokens=true)
Generate an action URL.
elgg_get_config(string $name, $default=null)
Get an Elgg configuration value.
elgg_is_admin_logged_in()
Returns whether or not the viewer is currently logged in and an admin user.
Plugin class containing helper functions for plugin activation/deactivation, dependency checking capa...
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Represents an upgrade that runs outside of the upgrade.php script.
elgg_generate_entity_url(ElggEntity $entity, string $resource= 'view', string $subresource=null, array $parameters=[])
Generate entity URL from a named route.
Long running upgrades should implement this interface.
elgg_generate_url(string $name, array $parameters=[])
Generate a URL for named route.
_elgg_services()
Get the global service provider.
elgg_view_exists(string $view, string $viewtype= '', bool $recurse=true)
Returns whether the specified view exists.
Models an event passed to event handlers.