You are here

function tome_sync_entity_delete in Tome 8

Implements hook_entity_delete().

@internal

1 call to tome_sync_entity_delete()
tome_sync_entity_translation_delete in modules/tome_sync/tome_sync.module
Implements hook_entity_translation_delete().

File

modules/tome_sync/tome_sync.module, line 37
Keeps content, config, and files in sync.

Code

function tome_sync_entity_delete(EntityInterface $entity) {
  if (_tome_sync_should_export($entity)) {
    \Drupal::service('tome_sync.exporter')
      ->deleteContentExport($entity);
  }
}