function entity_test_extra_entity_base_field_info

Same name in other branches
  1. 9 core/modules/system/tests/modules/entity_test_extra/entity_test_extra.module \entity_test_extra_entity_base_field_info()
  2. 8.9.x core/modules/system/tests/modules/entity_test_extra/entity_test_extra.module \entity_test_extra_entity_base_field_info()
  3. 11.x core/modules/system/tests/modules/entity_test_extra/entity_test_extra.module \entity_test_extra_entity_base_field_info()

Implements hook_entity_base_field_info().

File

core/modules/system/tests/modules/entity_test_extra/entity_test_extra.module, line 13

Code

function entity_test_extra_entity_base_field_info(EntityTypeInterface $entity_type) {
    return \Drupal::state()->get($entity_type->id() . '.additional_base_field_definitions', []);
}

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