public function AccessControlTrait::relationAccess in Group 2.0.x
1 method overrides AccessControlTrait::relationAccess()
- AccessControl::relationAccess in src/
Plugin/ Group/ RelationHandlerDefault/ AccessControl.php - Checks access to an operation on the relation.
File
- src/
Plugin/ Group/ RelationHandler/ AccessControlTrait.php, line 43
Class
- AccessControlTrait
- Trait for group relation permission providers.
Namespace
Drupal\group\Plugin\Group\RelationHandlerCode
public function relationAccess(GroupContentInterface $group_content, $operation, AccountInterface $account, $return_as_object = FALSE) {
if (!isset($this->parent)) {
throw new \LogicException('Using AccessControlTrait without assigning a parent or overwriting the methods.');
}
return $this->parent
->relationAccess($group_content, $operation, $account, $return_as_object);
}