You are here

public function GroupContentEnablerInterface::createAccess in Group 8

Performs access check for the create 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 content 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::createAccess()
GroupContentEnablerBase::createAccess in src/Plugin/GroupContentEnablerBase.php
Performs access check for the create operation.

File

src/Plugin/GroupContentEnablerInterface.php, line 282

Class

GroupContentEnablerInterface
Defines an interface for pluggable GroupContentEnabler back-ends.

Namespace

Drupal\group\Plugin

Code

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