language_entity_field_access_test.module in Drupal 9
Same filename and directory in other branches
Hook implementations for language_entity_field_access_test.
File
core/modules/language/tests/language_entity_field_access_test/language_entity_field_access_test.moduleView source
<?php
/**
* @file
* Hook implementations for language_entity_field_access_test.
*/
use Drupal\Core\Access\AccessResult;
use Drupal\Core\Field\FieldDefinitionInterface;
use Drupal\Core\Field\FieldItemListInterface;
use Drupal\Core\Session\AccountInterface;
/**
* Implements hook_entity_field_access().
*/
function language_entity_field_access_test_entity_field_access($operation, FieldDefinitionInterface $field_definition, AccountInterface $account, FieldItemListInterface $items = NULL) {
return AccessResult::forbidden();
}
Functions
Name![]() |
Description |
---|---|
language_entity_field_access_test_entity_field_access | Implements hook_entity_field_access(). |