function FieldUiTestHooks::fieldConfigAccess
Implements hook_ENTITY_TYPE_access().
File
-
core/
modules/ field_ui/ tests/ modules/ field_ui_test/ src/ Hook/ FieldUiTestHooks.php, line 21
Class
- FieldUiTestHooks
- Hook implementations for field_ui_test.
Namespace
Drupal\field_ui_test\HookCode
public function fieldConfigAccess(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.