protected function TeamPermissionHandler::getModuleNames in Apigee Edge 8
Returns all module names.
Return value
string[] Returns the human readable names of all modules keyed by machine name.
1 call to TeamPermissionHandler::getModuleNames()
- TeamPermissionHandler::buildPermissionsYaml in modules/
apigee_edge_teams/ src/ TeamPermissionHandler.php - Builds all team permissions provided by .team_permissions.yml files.
File
- modules/
apigee_edge_teams/ src/ TeamPermissionHandler.php, line 283
Class
- TeamPermissionHandler
- Provides the available team permissions based on yml files.
Namespace
Drupal\apigee_edge_teamsCode
protected function getModuleNames() : array {
$modules = [];
foreach (array_keys($this->moduleHandler
->getModuleList()) as $module) {
$modules[$module] = $this->moduleHandler
->getName($module);
}
asort($modules);
return $modules;
}