You are here

public function Field::getDatasourceId in Search API 8

Retrieves the ID of this field's datasource.

Return value

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

Overrides FieldInterface::getDatasourceId

3 calls to Field::getDatasourceId()
Field::getCombinedPropertyPath in src/Item/Field.php
Retrieves the "combined" property path of the field.
Field::getDataDefinition in src/Item/Field.php
Retrieves this field's data definition.
Field::getSettings in src/Item/Field.php
Retrieves all settings encapsulated in this field as an array.

File

src/Item/Field.php, line 333

Class

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

Namespace

Drupal\search_api\Item

Code

public function getDatasourceId() {
  return $this->datasourceId;
}