You are here

public function SearchApiQuery::setMessenger in Search API 8

Sets the messenger.

Parameters

\Drupal\Core\Messenger\MessengerInterface $messenger: The new messenger.

Return value

$this

Overrides MessengerTrait::setMessenger

File

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

Class

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

Namespace

Drupal\search_api\Plugin\views\query

Code

public function setMessenger(MessengerInterface $messenger) {
  $this->messenger = $messenger;
  return $this;
}