function RefinableCalculatedPermissions::removeItemsByScope

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

Removes all of the calculated permission items for the given scope.

Parameters

string $scope: The scope name to remove the items for.

Return value

self

Overrides RefinableCalculatedPermissionsInterface::removeItemsByScope

File

core/lib/Drupal/Core/Session/RefinableCalculatedPermissions.php, line 47

Class

RefinableCalculatedPermissions
Represents a calculated set of permissions with cacheable metadata.

Namespace

Drupal\Core\Session

Code

public function removeItemsByScope(string $scope) : self {
  unset($this->items[$scope]);
  return $this;
}

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