You are here

public function IndexInterface::setDatasources in Search API 8

Sets this index's datasource plugins.

Parameters

\Drupal\search_api\Datasource\DatasourceInterface[] $datasources: An array of datasources.

Return value

$this

2 methods override IndexInterface::setDatasources()
Index::setDatasources in src/Entity/Index.php
Sets this index's datasource plugins.
UnsavedIndexConfiguration::setDatasources in src/UnsavedIndexConfiguration.php
Sets this index's datasource plugins.

File

src/IndexInterface.php, line 189

Class

IndexInterface
Defines the interface for index entities.

Namespace

Drupal\search_api

Code

public function setDatasources(array $datasources);