You are here

public function BackendPluginBase::getMessenger in Search API 8

Retrieves the messenger.

Return value

\Drupal\Core\Messenger\MessengerInterface The messenger.

File

src/Backend/BackendPluginBase.php, line 131

Class

BackendPluginBase
Defines a base class for backend plugins.

Namespace

Drupal\search_api\Backend

Code

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