function workspaces_entity_access

Same name in other branches
  1. 9 core/modules/workspaces/workspaces.module \workspaces_entity_access()
  2. 8.9.x core/modules/workspaces/workspaces.module \workspaces_entity_access()
  3. 11.x core/modules/workspaces/workspaces.module \workspaces_entity_access()

Implements hook_entity_access().

See also

\Drupal\workspaces\EntityAccess

File

core/modules/workspaces/workspaces.module, line 203

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.