function bat_event_series_entity_insert in Booking and Availability Management Tools for Drupal 8
Implements hook_entity_insert().
File
- modules/
bat_event_series/ bat_event_series.module, line 332
Code
function bat_event_series_entity_insert(EntityInterface $entity) {
if ($entity
->bundle() == 'bat_event_type') {
bat_event_series_create_event_series_field($entity
->id());
}
}