language_entity_field_access_test.module 536 B

123456789101112131415161718
  1. <?php
  2. /**
  3. * @file
  4. * Hook implementations for language_entity_field_access_test.
  5. */
  6. use Drupal\Core\Access\AccessResult;
  7. use Drupal\Core\Field\FieldDefinitionInterface;
  8. use Drupal\Core\Field\FieldItemListInterface;
  9. use Drupal\Core\Session\AccountInterface;
  10. /**
  11. * Implements hook_entity_field_access().
  12. */
  13. function language_entity_field_access_test_entity_field_access($operation, FieldDefinitionInterface $field_definition, AccountInterface $account, FieldItemListInterface $items = NULL) {
  14. return AccessResult::forbidden();
  15. }