You are here

public function GroupContentEnablerInterface::createEntityAccess in Group 8

Performs access check for the create target entity operation.

This method is supposed to be overwritten by extending classes that do their own custom access checking.

Parameters

\Drupal\group\Entity\GroupInterface $group: The group to check for target entity creation access.

\Drupal\Core\Session\AccountInterface $account: The user for which to check access.

Return value

\Drupal\Core\Access\AccessResultInterface The access result.

Deprecated

in Group 1.0, will be removed before Group 2.0. Retrieve the access handler from the plugin manager instead.

1 method overrides GroupContentEnablerInterface::createEntityAccess()
GroupContentEnablerBase::createEntityAccess in src/Plugin/GroupContentEnablerBase.php
Performs access check for the create target entity operation.

File

src/Plugin/GroupContentEnablerInterface.php, line 263

Class

GroupContentEnablerInterface
Defines an interface for pluggable GroupContentEnabler back-ends.

Namespace

Drupal\group\Plugin

Code

public function createEntityAccess(GroupInterface $group, AccountInterface $account);