You are here

public function UnsavedIndexConfiguration::removeDatasource in Search API 8

Removes a datasource from this index.

Parameters

string $datasource_id: The ID of the datasource to remove.

Return value

$this

Overrides IndexInterface::removeDatasource

File

src/UnsavedIndexConfiguration.php, line 277

Class

UnsavedIndexConfiguration
Represents a configuration of an index that was not yet permanently saved.

Namespace

Drupal\search_api

Code

public function removeDatasource($datasource_id) {
  $this->entity
    ->removeDatasource($datasource_id);
  return $this;
}