You are here

public function ContentHubReindex::isReindexFailed in Acquia Content Hub 8

Checks whether the current Reindexing State is REINDEX_FAILED.

Return value

bool TRUE if Reindexing State is REINDEX_FAILED, FALSE otherwise.

File

src/Controller/ContentHubReindex.php, line 158

Class

ContentHubReindex
Class for reindexing Content Hub content.

Namespace

Drupal\acquia_contenthub\Controller

Code

public function isReindexFailed() {
  return $this
    ->getReindexingState() === self::REINDEX_FAILED;
}