You are here

function entity_test_entity_field_storage_info in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/tests/modules/entity_test/entity_test.module \entity_test_entity_field_storage_info()

Implements hook_entity_field_storage_info().

File

core/modules/system/tests/modules/entity_test/entity_test.module, line 147
Test module for the entity API providing several entity types for testing.

Code

function entity_test_entity_field_storage_info(EntityTypeInterface $entity_type) {
  if ($entity_type
    ->id() == 'entity_test_update') {
    return \Drupal::state()
      ->get('entity_test_update.additional_field_storage_definitions', array());
  }
}