Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. RefinableCalculatedPermissions.php

function 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;
}
RSS feed
Powered by Drupal