function CalculatedPermissionsInterface::getItemsByScope

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

Retrieves all of the calculated permission items for the given scope.

Parameters

string $scope: (optional) The scope name to get the item for, defaults to 'drupal'.

Return value

\Drupal\Core\Session\CalculatedPermissionsItemInterface[] A list of calculated permission items for the given scope.

File

core/lib/Drupal/Core/Session/CalculatedPermissionsInterface.php, line 50

Class

CalculatedPermissionsInterface
Defines the calculated permissions interface.

Namespace

Drupal\Core\Session

Code

public function getItemsByScope(string $scope = AccessPolicyInterface::SCOPE_DRUPAL) : array;

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