You are here

public function UnsavedIndexConfiguration::setProcessors in Search API 8

Sets this index's processor plugins.

Parameters

\Drupal\search_api\Processor\ProcessorInterface[] $processors: An array of processors.

Return value

$this

Overrides IndexInterface::setProcessors

File

src/UnsavedIndexConfiguration.php, line 409

Class

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

Namespace

Drupal\search_api

Code

public function setProcessors(array $processors) {
  $this->entity
    ->setProcessors($processors);
  return $this;
}