function PermissionHandler::getPermissions
Same name in other branches
- 9 core/modules/user/src/PermissionHandler.php \Drupal\user\PermissionHandler::getPermissions()
- 8.9.x core/modules/user/src/PermissionHandler.php \Drupal\user\PermissionHandler::getPermissions()
- 11.x core/modules/user/src/PermissionHandler.php \Drupal\user\PermissionHandler::getPermissions()
1 call to PermissionHandler::getPermissions()
- PermissionHandler::moduleProvidesPermissions in core/
modules/ user/ src/ PermissionHandler.php
File
-
core/
modules/ user/ src/ PermissionHandler.php, line 124
Class
- PermissionHandler
- Provides the available permissions based on yml files.
Namespace
Drupal\userCode
public function getPermissions() {
$all_permissions = $this->buildPermissionsYaml();
return $this->sortPermissions($all_permissions);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.