function entity_test_entity_test_access
Same name in other branches
- 8.9.x core/modules/system/tests/modules/entity_test/entity_test.module \entity_test_entity_test_access()
- 10 core/modules/system/tests/modules/entity_test/entity_test.module \entity_test_entity_test_access()
- 11.x core/modules/system/tests/modules/entity_test/entity_test.module \entity_test_entity_test_access()
Implements hook_ENTITY_TYPE_access() for 'entity_test'.
1 string reference to 'entity_test_entity_test_access'
- EntityAccessControlHandlerTest::testHooks in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityAccessControlHandlerTest.php - Tests hook invocations.
File
-
core/
modules/ system/ tests/ modules/ entity_test/ entity_test.module, line 766
Code
function entity_test_entity_test_access(EntityInterface $entity, $operation, AccountInterface $account) {
\Drupal::state()->set('entity_test_entity_test_access', TRUE);
// No opinion.
return AccessResult::neutral();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.