You are here

public function BackendPluginBase::setServer in Search API 8

Sets the server entity for this backend.

Parameters

\Drupal\search_api\ServerInterface $server: The server entity.

Return value

$this

Overrides BackendInterface::setServer

1 call to BackendPluginBase::setServer()
BackendPluginBase::__construct in src/Backend/BackendPluginBase.php
Constructs a \Drupal\Component\Plugin\PluginBase object.

File

src/Backend/BackendPluginBase.php, line 169

Class

BackendPluginBase
Defines a base class for backend plugins.

Namespace

Drupal\search_api\Backend

Code

public function setServer(ServerInterface $server) {
  $this->server = $server;
  return $this;
}