public function AccessControlTrait::relationCreateAccess in Group 2.0.x
1 method overrides AccessControlTrait::relationCreateAccess()
- AccessControl::relationCreateAccess in src/
Plugin/ Group/ RelationHandlerDefault/ AccessControl.php - Checks access to create a relation.
File
- src/
Plugin/ Group/ RelationHandler/ AccessControlTrait.php, line 53
Class
- AccessControlTrait
- Trait for group relation permission providers.
Namespace
Drupal\group\Plugin\Group\RelationHandlerCode
public function relationCreateAccess(GroupInterface $group, 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
->relationCreateAccess($group, $account, $return_as_object);
}