You are here

public function IndexController::getMessenger in Search API 8

Retrieves the messenger.

Return value

\Drupal\Core\Messenger\MessengerInterface The messenger.

File

src/Controller/IndexController.php, line 88

Class

IndexController
Provides route responses for search indexes.

Namespace

Drupal\search_api\Controller

Code

public function getMessenger() {
  return $this->messenger ?: \Drupal::service('messenger');
}