function entity_test_extra_entity_bundle_field_info in Drupal 8
Same name and namespace in other branches
- 9 core/modules/system/tests/modules/entity_test_extra/entity_test_extra.module \entity_test_extra_entity_bundle_field_info()
Implements hook_entity_bundle_field_info().
File
- core/
modules/ system/ tests/ modules/ entity_test_extra/ entity_test_extra.module, line 27 - Test module for the entity API providing several extra fields for testing.
Code
function entity_test_extra_entity_bundle_field_info(EntityTypeInterface $entity_type, $bundle, array $base_field_definitions) {
return \Drupal::state()
->get($entity_type
->id() . '.' . $bundle . '.additional_bundle_field_definitions', []);
}