function 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;