function _tome_sync_should_export in Tome 8
Determines if a given entity should be exported.
@internal
Parameters
\Drupal\Core\Entity\EntityInterface $entity: An entity to export.
Return value
bool Whether or not the given entity should be exported.
2 calls to _tome_sync_should_export()
- tome_sync_entity_delete in modules/
tome_sync/ tome_sync.module - Implements hook_entity_delete().
- tome_sync_entity_insert in modules/
tome_sync/ tome_sync.module - Implements hook_entity_insert().
File
- modules/
tome_sync/ tome_sync.module, line 108 - Keeps content, config, and files in sync.
Code
function _tome_sync_should_export(EntityInterface $entity) {
return $entity instanceof ContentEntityInterface && $entity
->isDefaultRevision() && !\Drupal::isConfigSyncing() && !\Drupal::service('tome_sync.importer')
->isImporting();
}