function RefinableCalculatedPermissionsInterface::removeItem

Same name in other branches
  1. 10 core/lib/Drupal/Core/Session/RefinableCalculatedPermissionsInterface.php \Drupal\Core\Session\RefinableCalculatedPermissionsInterface::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

1 method overrides RefinableCalculatedPermissionsInterface::removeItem()
RefinableCalculatedPermissions::removeItem in core/lib/Drupal/Core/Session/RefinableCalculatedPermissions.php

File

core/lib/Drupal/Core/Session/RefinableCalculatedPermissionsInterface.php, line 37

Class

RefinableCalculatedPermissionsInterface
Defines the refinable calculated permissions interface.

Namespace

Drupal\Core\Session

Code

public function removeItem(string $scope = AccessPolicyInterface::SCOPE_DRUPAL, string|int $identifier = AccessPolicyInterface::SCOPE_DRUPAL) : self;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.