You are here

public function SearchApiQuery::getMessenger in Search API 8

Retrieves the messenger.

Return value

\Drupal\Core\Messenger\MessengerInterface The messenger.

File

src/Plugin/views/query/SearchApiQuery.php, line 232

Class

SearchApiQuery
Defines a Views query class for searching on Search API indexes.

Namespace

Drupal\search_api\Plugin\views\query

Code

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