function tome_sync_entity_insert in Tome 8
Implements hook_entity_insert().
@internal
1 call to tome_sync_entity_insert()
- tome_sync_entity_update in modules/
tome_sync/ tome_sync.module - Implements hook_entity_update().
File
- modules/
tome_sync/ tome_sync.module, line 17 - Keeps content, config, and files in sync.
Code
function tome_sync_entity_insert(EntityInterface $entity) {
if (_tome_sync_should_export($entity)) {
\Drupal::service('tome_sync.exporter')
->exportContent($entity);
}
}