function field_ui_test_field_config_access
Same name in other branches
- 9 core/modules/field_ui/tests/modules/field_ui_test/field_ui_test.module \field_ui_test_field_config_access()
- 8.9.x core/modules/field_ui/tests/modules/field_ui_test/field_ui_test.module \field_ui_test_field_config_access()
- 10 core/modules/field_ui/tests/modules/field_ui_test/field_ui_test.module \field_ui_test_field_config_access()
Implements hook_ENTITY_TYPE_access().
File
-
core/
modules/ field_ui/ tests/ modules/ field_ui_test/ field_ui_test.module, line 18
Code
function field_ui_test_field_config_access(FieldConfigInterface $field) {
return AccessResult::forbiddenIf($field->getName() == 'highlander');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.