You are here

public function DBManager::is_exist in Content Export YAML 8

1 call to DBManager::is_exist()
DBManager::load_exported_all in modules/manager_content_export_yaml/src/DBManager.php

File

modules/manager_content_export_yaml/src/DBManager.php, line 22

Class

DBManager

Namespace

Drupal\content_export_yaml

Code

public function is_exist($id, $entity, $bundle) {
  return $this->database
    ->select('content_export_yaml', 'n')
    ->fields('n', array(
    'number',
    'entity_id',
    'entity_type',
    'bundle',
  ))
    ->condition('bundle', $bundle, '=')
    ->condition('entity_type', $entity, '=')
    ->condition('entity_id', $id, '=')
    ->range(0, 1)
    ->execute()
    ->fetchAllAssoc('number');
}