You are here

language_entity_field_access_test.module in Drupal 8

Hook implementations for language_entity_field_access_test.

File

core/modules/language/tests/language_entity_field_access_test/language_entity_field_access_test.module
View 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();
}