function RefinableCalculatedPermissions::removeItem

Same name in other branches
  1. 11.x core/lib/Drupal/Core/Session/RefinableCalculatedPermissions.php \Drupal\Core\Session\RefinableCalculatedPermissions::removeItem()

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\Session

Code

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.