Elgg  Version master
group.php
Go to the documentation of this file.
1 <?php
7 
8 if (!elgg_get_config('trash_enabled')) {
9  throw new PageNotFoundException();
10 }
11 
12 /* @var $group \ElggGroup */
14 
16 
17 echo elgg_view_page(elgg_echo('trash:group:title', [$group->getDisplayName()]), [
18  'content' => elgg_view('trash/listing/group', ['entity' => $group]),
19  'filter_id' => 'trash',
20 ]);
if(!elgg_get_config('trash_enabled')) $group
Definition: group.php:13
elgg_get_config(string $name, $default=null)
Get an Elgg configuration value.
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17
elgg_push_entity_breadcrumbs(\ElggEntity $entity)
Resolves and pushes entity breadcrumbs based on named routes.
Definition: breadcrumbs.php:33
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition: views.php:156
Thrown when page is not accessible.
elgg_view_page(string $title, string|array $body, string $page_shell= 'default', array $vars=[])
Assembles and outputs a full page.
Definition: views.php:235
elgg_get_page_owner_entity()
Gets the owner entity for the current page.
Definition: pageowner.php:23