public function ServerController::getMessenger in Search API 8
Retrieves the messenger.
Return value
\Drupal\Core\Messenger\MessengerInterface The messenger.
File
- src/
Controller/ ServerController.php, line 41
Class
- ServerController
- Provides block routines for search server-specific routes.
Namespace
Drupal\search_api\ControllerCode
public function getMessenger() {
return $this->messenger ?: \Drupal::service('messenger');
}