protected function ImportQueueResolver::entityExists in Content Synchronization 3.0.x
Same name and namespace in other branches
- 8.2 src/DependencyResolver/ImportQueueResolver.php \Drupal\content_sync\DependencyResolver\ImportQueueResolver::entityExists()
Checks if a dependency exists in the site.
Parameters
$identifier: An entity identifier to process.
Return value
bool
File
- src/
DependencyResolver/ ImportQueueResolver.php, line 102
Class
- ImportQueueResolver
- Class ImportQueueResolver.
Namespace
Drupal\content_sync\DependencyResolverCode
protected function entityExists($identifier) {
return (bool) \Drupal::database()
->queryRange('SELECT 1 FROM {cs_db_snapshot} WHERE name = :name', 0, 1, [
':name' => $identifier,
])
->fetchField();
}