You are here

public function RefinableCalculatedGroupPermissions::removeItemsByScope in Group 8

Same name and namespace in other branches
  1. 2.0.x src/Access/RefinableCalculatedGroupPermissions.php \Drupal\group\Access\RefinableCalculatedGroupPermissions::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

$this

Overrides RefinableCalculatedGroupPermissionsInterface::removeItemsByScope

File

src/Access/RefinableCalculatedGroupPermissions.php, line 47

Class

RefinableCalculatedGroupPermissions
Represents a calculated set of group permissions with cacheable metadata.

Namespace

Drupal\group\Access

Code

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