You are here

public function IndexInterface::setServer in Search API 8

Sets the server the index is attached to.

Parameters

\Drupal\search_api\ServerInterface|null $server: The server to move this index to, or NULL.

Return value

$this

2 methods override IndexInterface::setServer()
Index::setServer in src/Entity/Index.php
Sets the server the index is attached to.
UnsavedIndexConfiguration::setServer in src/UnsavedIndexConfiguration.php
Sets the server the index is attached to.

File

src/IndexInterface.php, line 281

Class

IndexInterface
Defines the interface for index entities.

Namespace

Drupal\search_api

Code

public function setServer(ServerInterface $server = NULL);