function entity_test_update_entity_field_storage_info in Drupal 9
Same name and namespace in other branches
- 8 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 34 - Provides an entity type for testing definition and schema updates.
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', []);
}
}