public function OgAdminMembersController::membersList in Organic groups 8
Display list of members that belong to the group.
Parameters
\Drupal\Core\Routing\RouteMatchInterface $route_match: The route match service.
Return value
array The members overview View.
File
- src/
Controller/ OgAdminMembersController.php, line 25
Class
- OgAdminMembersController
- Displays the members administration page.
Namespace
Drupal\og\ControllerCode
public function membersList(RouteMatchInterface $route_match) {
$parameter_name = $route_match
->getRouteObject()
->getOption('_og_entity_type_id');
/** @var \Drupal\Core\Entity\EntityInterface $group */
$group = $route_match
->getParameter($parameter_name);
$arguments = [
$group
->getEntityTypeId(),
$group
->id(),
];
return Views::getView('og_members_overview')
->executeDisplay('default', $arguments);
}