You are here

public function PermissionHandler::getPermissions in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/user/src/PermissionHandler.php \Drupal\user\PermissionHandler::getPermissions()
  2. 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\user

Code

public function getPermissions() {
  $all_permissions = $this
    ->buildPermissionsYaml();
  return $this
    ->sortPermissions($all_permissions);
}