public function RefinableCalculatedGroupPermissions::removeItem in Group 2.0.x
Same name and namespace in other branches
- 8 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\AccessCode
public function removeItem($scope, $identifier) {
unset($this->items[$scope][$identifier]);
return $this;
}