public function ServerController::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/
Controller/ ServerController.php, line 53
Class
- ServerController
- Provides block routines for search server-specific routes.
Namespace
Drupal\search_api\ControllerCode
public function setMessenger(MessengerInterface $messenger) {
$this->messenger = $messenger;
return $this;
}