onEntityTypeCreate($event->getEntityType()); break; case EntityTypeEvents::UPDATE: $this->onEntityTypeUpdate($event->getEntityType(), $event->getOriginal()); break; case EntityTypeEvents::DELETE: $this->onEntityTypeDelete($event->getEntityType()); break; } } /** * {@inheritdoc} */ public function onEntityTypeCreate(EntityTypeInterface $entity_type) { } /** * {@inheritdoc} */ public function onFieldableEntityTypeCreate(EntityTypeInterface $entity_type, array $field_storage_definitions) { } /** * {@inheritdoc} */ public function onEntityTypeUpdate(EntityTypeInterface $entity_type, EntityTypeInterface $original) { } /** * {@inheritdoc} */ public function onFieldableEntityTypeUpdate(EntityTypeInterface $entity_type, EntityTypeInterface $original, array $field_storage_definitions, array $original_field_storage_definitions, array &$sandbox = NULL) { } /** * {@inheritdoc} */ public function onEntityTypeDelete(EntityTypeInterface $entity_type) { } }