function workspaces_entity_access
Same name in other branches
- 9 core/modules/workspaces/workspaces.module \workspaces_entity_access()
- 8.9.x core/modules/workspaces/workspaces.module \workspaces_entity_access()
- 10 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.