function PermissionHandler::getPermissions

Same name in other branches
  1. 9 core/modules/user/src/PermissionHandler.php \Drupal\user\PermissionHandler::getPermissions()
  2. 10 core/modules/user/src/PermissionHandler.php \Drupal\user\PermissionHandler::getPermissions()
  3. 11.x core/modules/user/src/PermissionHandler.php \Drupal\user\PermissionHandler::getPermissions()

Overrides PermissionHandlerInterface::getPermissions

1 call to PermissionHandler::getPermissions()
PermissionHandler::moduleProvidesPermissions in core/modules/user/src/PermissionHandler.php
Determines whether a module provides some permissions.

File

core/modules/user/src/PermissionHandler.php, line 107

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);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.