function workspaces_entity_access
Implements hook_entity_access().
See also
\Drupal\workspaces\EntityAccess
File
-
core/
modules/ workspaces/ workspaces.module, line 210
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.