You are here

public function BackendPluginBase::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/Backend/BackendPluginBase.php, line 143

Class

BackendPluginBase
Defines a base class for backend plugins.

Namespace

Drupal\search_api\Backend

Code

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