You are here

function workspace_entity_access in Workspace 8.2

Same name and namespace in other branches
  1. 8 workspace.module \workspace_entity_access()

Implements hook_entity_access().

See also

\Drupal\workspace\EntityAccess

File

./workspace.module, line 95
Provides full-site preview functionality for content staging.

Code

function workspace_entity_access(EntityInterface $entity, $operation, AccountInterface $account) {
  return \Drupal::service('class_resolver')
    ->getInstanceFromDefinition(EntityAccess::class)
    ->entityOperationAccess($entity, $operation, $account);
}