function EntityTestExtraHooks::entityBundleFieldInfo
Implements hook_entity_bundle_field_info().
File
-
core/
modules/ system/ tests/ modules/ entity_test_extra/ src/ Hook/ EntityTestExtraHooks.php, line 34
Class
- EntityTestExtraHooks
- Hook implementations for entity_test_extra.
Namespace
Drupal\entity_test_extra\HookCode
public function entityBundleFieldInfo(EntityTypeInterface $entity_type, $bundle, array $base_field_definitions) {
return \Drupal::state()->get($entity_type->id() . '.' . $bundle . '.additional_bundle_field_definitions', []);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.