function CalculatedPermissionsTrait::getItem
Same name in other branches
- 10 core/lib/Drupal/Core/Session/CalculatedPermissionsTrait.php \Drupal\Core\Session\CalculatedPermissionsTrait::getItem()
1 call to CalculatedPermissionsTrait::getItem()
- RefinableCalculatedPermissions::addItem in core/
lib/ Drupal/ Core/ Session/ RefinableCalculatedPermissions.php - Adds a calculated permission item.
File
-
core/
lib/ Drupal/ Core/ Session/ CalculatedPermissionsTrait.php, line 20
Class
Namespace
Drupal\Core\SessionCode
public function getItem(string $scope = AccessPolicyInterface::SCOPE_DRUPAL, string|int $identifier = AccessPolicyInterface::SCOPE_DRUPAL) : CalculatedPermissionsItemInterface|false {
return $this->items[$scope][$identifier] ?? FALSE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.