You are here

public function AccessControlHierarchyInterface::checkEntityAccess in Workbench Access 8

Responds to request for node access.

Parameters

\Drupal\workbench_access\Entity\AccessSchemeInterface $scheme: Access scheme.

\Drupal\Core\Entity\EntityInterface $entity: The node being checked. In future this may handle other entity types.

string $op: The operation, e.g. update, delete.

\Drupal\Core\Session\AccountInterface $account: The user requesting access to the node.

Return value

\Drupal\Core\Access\AccessResultInterface An access result response. By design, this is either ignore or deny.

See also

workbench_access_entity_access()

1 method overrides AccessControlHierarchyInterface::checkEntityAccess()
AccessControlHierarchyBase::checkEntityAccess in src/AccessControlHierarchyBase.php
Responds to request for node access.

File

src/AccessControlHierarchyInterface.php, line 117

Class

AccessControlHierarchyInterface
Defines a base hierarchy class that others may extend.

Namespace

Drupal\workbench_access

Code

public function checkEntityAccess(AccessSchemeInterface $scheme, EntityInterface $entity, $op, AccountInterface $account);