function entity_test_update_entity_field_storage_info

Same name and namespace in other branches
  1. 9 core/modules/system/tests/modules/entity_test_update/entity_test_update.module \entity_test_update_entity_field_storage_info()
  2. 10 core/modules/system/tests/modules/entity_test_update/entity_test_update.module \entity_test_update_entity_field_storage_info()
  3. 11.x core/modules/system/tests/modules/entity_test_update/entity_test_update.module \entity_test_update_entity_field_storage_info()

Implements hook_entity_field_storage_info().

File

core/modules/system/tests/modules/entity_test_update/entity_test_update.module, line 35

Code

function entity_test_update_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', []);
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.