You are here

public function IndexerBase::has in Drupal 7 to 8/9 Module Upgrader 8

Overrides IndexerInterface::has

2 calls to IndexerBase::has()
Functions::has in src/Plugin/DMU/Indexer/Functions.php
IndexerBase::hasAny in src/IndexerBase.php
1 method overrides IndexerBase::has()
Functions::has in src/Plugin/DMU/Indexer/Functions.php

File

src/IndexerBase.php, line 97

Class

IndexerBase
Base class for indexers.

Namespace

Drupal\drupalmoduleupgrader

Code

public function has($identifier) {
  return (bool) $this
    ->getQuery()
    ->condition('id', $identifier)
    ->countQuery()
    ->execute()
    ->fetchField();
}