function RefinableCalculatedPermissions::removeItem
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Session/RefinableCalculatedPermissions.php \Drupal\Core\Session\RefinableCalculatedPermissions::removeItem()
Removes a single calculated permission item from a given scope.
Parameters
string $scope: (optional) The scope name to remove the item from, defaults to 'drupal'.
string|int $identifier: (optional) The scope identifier to remove the item from, defaults to 'drupal'.
Return value
self
Overrides RefinableCalculatedPermissionsInterface::removeItem
File
-
core/
lib/ Drupal/ Core/ Session/ RefinableCalculatedPermissions.php, line 31
Class
- RefinableCalculatedPermissions
- Represents a calculated set of permissions with cacheable metadata.
Namespace
Drupal\Core\SessionCode
public function removeItem(string $scope = AccessPolicyInterface::SCOPE_DRUPAL, string|int $identifier = AccessPolicyInterface::SCOPE_DRUPAL) : self {
unset($this->items[$scope][$identifier]);
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.