You are here

public function IndexInterface::addProcessor in Search API 8

Adds a processor to this index.

An existing processor with the same ID will be replaced.

Parameters

\Drupal\search_api\Processor\ProcessorInterface $processor: The processor to be added.

Return value

$this

2 methods override IndexInterface::addProcessor()
Index::addProcessor in src/Entity/Index.php
Adds a processor to this index.
UnsavedIndexConfiguration::addProcessor in src/UnsavedIndexConfiguration.php
Adds a processor to this index.

File

src/IndexInterface.php, line 348

Class

IndexInterface
Defines the interface for index entities.

Namespace

Drupal\search_api

Code

public function addProcessor(ProcessorInterface $processor);