You are here

public function RefinableCalculatedGroupPermissions::removeItem in Group 8

Same name and namespace in other branches
  1. 2.0.x src/Access/RefinableCalculatedGroupPermissions.php \Drupal\group\Access\RefinableCalculatedGroupPermissions::removeItem()

Removes a single calculated permission item from a given scope.

Parameters

$scope: The scope name to remove the item from.

$identifier: The scope identifier to remove the item from.

Return value

$this

Overrides RefinableCalculatedGroupPermissionsInterface::removeItem

File

src/Access/RefinableCalculatedGroupPermissions.php, line 31

Class

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

Namespace

Drupal\group\Access

Code

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