function workspace_access_test_workspace_access
Same name in other branches
- 8.9.x core/modules/workspaces/tests/modules/workspace_access_test/workspace_access_test.module \workspace_access_test_workspace_access()
- 10 core/modules/workspaces/tests/modules/workspace_access_test/workspace_access_test.module \workspace_access_test_workspace_access()
- 11.x core/modules/workspaces/tests/modules/workspace_access_test/workspace_access_test.module \workspace_access_test_workspace_access()
Implements hook_ENTITY_TYPE_access() for the 'workspace' entity type.
File
-
core/
modules/ workspaces/ tests/ modules/ workspace_access_test/ workspace_access_test.module, line 15
Code
function workspace_access_test_workspace_access(EntityInterface $entity, $operation, AccountInterface $account) {
return \Drupal::state()->get("workspace_access_test.result.{$operation}", AccessResult::neutral());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.