public function PermissionHandler::getPermissions in Drupal 10
Same name and namespace in other branches
- 8 core/modules/user/src/PermissionHandler.php \Drupal\user\PermissionHandler::getPermissions()
- 9 core/modules/user/src/PermissionHandler.php \Drupal\user\PermissionHandler::getPermissions()
File
- core/
modules/ user/ src/ PermissionHandler.php, line 111
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);
}