function LanguageEntityFieldAccessTestHooks::entityFieldAccess
Implements hook_entity_field_access().
File
-
core/
modules/ language/ tests/ language_entity_field_access_test/ src/ Hook/ LanguageEntityFieldAccessTestHooks.php, line 21
Class
- LanguageEntityFieldAccessTestHooks
- Hook implementations for language_entity_field_access_test.
Namespace
Drupal\language_entity_field_access_test\HookCode
public function entityFieldAccess($operation, FieldDefinitionInterface $field_definition, AccountInterface $account, ?FieldItemListInterface $items = NULL) {
return AccessResult::forbidden();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.