public function FieldInterface::getDatasource in Search API 8
Returns the datasource of this field.
Return value
\Drupal\search_api\Datasource\DatasourceInterface|null The datasource to which this field belongs. NULL if the field is datasource-independent.
Throws
\Drupal\search_api\SearchApiException Thrown if the field's datasource couldn't be loaded.
1 method overrides FieldInterface::getDatasource()
- Field::getDatasource in src/
Item/ Field.php - Returns the datasource of this field.
File
- src/
Item/ FieldInterface.php, line 108
Class
- FieldInterface
- Represents a field on a search item that can be indexed.
Namespace
Drupal\search_api\ItemCode
public function getDatasource();