function field_test_entity_info

Implements hook_entity_info().

File

drupal/core/modules/field/tests/modules/field_test/field_test.entity.inc, line 14
Defines an entity type.

Code

function field_test_entity_info() {

  // If requested, clear the field cache while this is being called. See
  // Drupal\field\Tests\FieldInfoTest::testFieldInfoCache().
  if (Drupal::state()
    ->get('field_test.clear_info_cache_in_hook_entity_info')) {
    field_info_cache_clear();
  }
}