function CalculatedPermissionsTrait::getItemsByScope

Same name in other branches
  1. 10 core/lib/Drupal/Core/Session/CalculatedPermissionsTrait.php \Drupal\Core\Session\CalculatedPermissionsTrait::getItemsByScope()

File

core/lib/Drupal/Core/Session/CalculatedPermissionsTrait.php, line 45

Class

CalculatedPermissionsTrait
Trait for \Drupal\Core\Session\CalculatedPermissionsInterface.

Namespace

Drupal\Core\Session

Code

public function getItemsByScope(string $scope = AccessPolicyInterface::SCOPE_DRUPAL) : array {
    return isset($this->items[$scope]) ? array_values($this->items[$scope]) : [];
}

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