function entity_test_entity_create_access
Same name in other branches
- 9 core/modules/system/tests/modules/entity_test/entity_test.module \entity_test_entity_create_access()
- 10 core/modules/system/tests/modules/entity_test/entity_test.module \entity_test_entity_create_access()
- 11.x core/modules/system/tests/modules/entity_test/entity_test.module \entity_test_entity_create_access()
Implements hook_entity_create_access().
1 string reference to 'entity_test_entity_create_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 859
Code
function entity_test_entity_create_access(AccountInterface $account, $context, $entity_bundle) {
\Drupal::state()->set('entity_test_entity_create_access', TRUE);
\Drupal::state()->set('entity_test_entity_create_access_context', $context);
// No opinion.
return AccessResult::neutral();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.