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