public function RefinableCalculatedGroupPermissionsInterface::addItem in Group 2.0.x
Same name and namespace in other branches
- 8 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\AccessCode
public function addItem(CalculatedGroupPermissionsItemInterface $item, $overwrite = FALSE);