You are here

private function ContentHubReindex::getReindexingState in Acquia Content Hub 8

Gets the Reindexing State from the State Variable.

Return value

string The Reindexing State.

4 calls to ContentHubReindex::getReindexingState()
ContentHubReindex::isReindexFailed in src/Controller/ContentHubReindex.php
Checks whether the current Reindexing State is REINDEX_FAILED.
ContentHubReindex::isReindexFinished in src/Controller/ContentHubReindex.php
Checks whether the current Reindexing State is REINDEX_FINISHED.
ContentHubReindex::isReindexNone in src/Controller/ContentHubReindex.php
Checks whether the current Reindexing State is REINDEX_NONE.
ContentHubReindex::isReindexSent in src/Controller/ContentHubReindex.php
Checks whether the current Reindexing State is REINDEX_SENT.

File

src/Controller/ContentHubReindex.php, line 85

Class

ContentHubReindex
Class for reindexing Content Hub content.

Namespace

Drupal\acquia_contenthub\Controller

Code

private function getReindexingState() {
  $this->reindexState = $this->state
    ->get(self::REINDEXING_STATE, self::REINDEX_NONE);
  return $this->reindexState;
}