function CalculatedPermissionsInterface::getItem
Same name in other branches
- 10 core/lib/Drupal/Core/Session/CalculatedPermissionsInterface.php \Drupal\Core\Session\CalculatedPermissionsInterface::getItem()
Retrieves a single calculated permission item from a given scope.
Parameters
string $scope: (optional) The scope name to get the item for, defaults to 'drupal'.
string|int $identifier: (optional) The identifier to get the item for, defaults to 'drupal'.
Return value
\Drupal\Core\Session\CalculatedPermissionsItemInterface|false The calculated permission item or FALSE if it could not be found.
File
-
core/
lib/ Drupal/ Core/ Session/ CalculatedPermissionsInterface.php, line 23
Class
- CalculatedPermissionsInterface
- Defines the calculated permissions interface.
Namespace
Drupal\Core\SessionCode
public function getItem(string $scope = AccessPolicyInterface::SCOPE_DRUPAL, string|int $identifier = AccessPolicyInterface::SCOPE_DRUPAL) : CalculatedPermissionsItemInterface|false;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.