protected function GroupPermissionHandler::getModuleNames in Group 2.0.x
Same name and namespace in other branches
- 8 src/Access/GroupPermissionHandler.php \Drupal\group\Access\GroupPermissionHandler::getModuleNames()
Returns all module names.
Return value
string[] Returns the human readable names of all modules keyed by machine name.
1 call to GroupPermissionHandler::getModuleNames()
- GroupPermissionHandler::sortPermissions in src/
Access/ GroupPermissionHandler.php - Sorts the given permissions by provider name first and then by title.
File
- src/
Access/ GroupPermissionHandler.php, line 301
Class
- GroupPermissionHandler
- Provides the available permissions based on yml files.
Namespace
Drupal\group\AccessCode
protected function getModuleNames() {
$modules = [];
foreach (array_keys($this->moduleHandler
->getModuleList()) as $module) {
$modules[$module] = $this->moduleHandler
->getName($module);
}
asort($modules);
return $modules;
}