You are here

function workspace_entity_access in Workspace 8

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

Implements hook_entity_access().

File

./workspace.module, line 100

Code

function workspace_entity_access(EntityInterface $entity, $operation, AccountInterface $account) {
  return \Drupal::service('workspace.entity_access')
    ->entityAccess($entity, $operation, $account);
}