public function GroupMenuController::groupContentOverview in Group Menu 8
Provides the group menu overview page.
Parameters
\Drupal\group\Entity\GroupInterface $group: The group to show the group menu content for.
Return value
array A render array as expected by drupal_render().
1 string reference to 'GroupMenuController::groupContentOverview'
File
- src/
Controller/ GroupMenuController.php, line 67
Class
- GroupMenuController
- Returns responses for 'group_menu' GroupContent routes.
Namespace
Drupal\groupmenu\ControllerCode
public function groupContentOverview(GroupInterface $group) {
$class = '\\Drupal\\groupmenu\\GroupMenuContentListBuilder';
$definition = $this
->entityTypeManager()
->getDefinition('group_content');
return $this
->entityTypeManager()
->createHandlerInstance($class, $definition)
->render();
}