You are here

public function FieldInterface::setDatasourceId in Search API 8

Sets the ID of this field's datasource.

Parameters

string|null $datasource_id: The plugin ID of this field's datasource, or NULL if the field is datasource-independent.

Return value

$this

1 method overrides FieldInterface::setDatasourceId()
Field::setDatasourceId in src/Item/Field.php
Sets the ID of this field's datasource.

File

src/Item/FieldInterface.php, line 119

Class

FieldInterface
Represents a field on a search item that can be indexed.

Namespace

Drupal\search_api\Item

Code

public function setDatasourceId($datasource_id);