public function IndexController::getMessenger in Search API 8
Retrieves the messenger.
Return value
\Drupal\Core\Messenger\MessengerInterface The messenger.
File
- src/
Controller/ IndexController.php, line 88
Class
- IndexController
- Provides route responses for search indexes.
Namespace
Drupal\search_api\ControllerCode
public function getMessenger() {
return $this->messenger ?: \Drupal::service('messenger');
}