You are here

public function RefinableCalculatedGroupPermissionsInterface::addItem in Group 8

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

Adds a calculated permission item.

Parameters

\Drupal\group\Access\CalculatedGroupPermissionsItemInterface $item: The calculated permission item.

bool $overwrite: (optional) Whether to overwrite an item if there already is one for the given identifier within the scope. Defaults to FALSE, meaning a merge will take place instead.

Return value

$this

1 method overrides RefinableCalculatedGroupPermissionsInterface::addItem()
RefinableCalculatedGroupPermissions::addItem in src/Access/RefinableCalculatedGroupPermissions.php
Adds a calculated permission item.

File

src/Access/RefinableCalculatedGroupPermissionsInterface.php, line 24

Class

RefinableCalculatedGroupPermissionsInterface
Defines the calculated group permissions interface.

Namespace

Drupal\group\Access

Code

public function addItem(CalculatedGroupPermissionsItemInterface $item, $overwrite = FALSE);