function extra_field_entity_bundle_create in Extra Field 8.2
Implements hook_entity_bundle_create().
File
- ./
extra_field.module, line 42 - Hook implementations for Extra Field module.
Code
function extra_field_entity_bundle_create($entity_type_id, $bundle) {
// Clear the service's local cache to prevent errors when multiple entity
// bundles are created and used within one call. This happens when running
// tests that uses multiple node types in a single test.
Drupal::service('plugin.manager.extra_field_display')
->clearCache();
Drupal::service('plugin.manager.extra_field_form')
->clearCache();
}