public function UnsavedIndexConfiguration::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
Overrides IndexInterface::addProcessor
File
- src/
UnsavedIndexConfiguration.php, line 393
Class
- UnsavedIndexConfiguration
- Represents a configuration of an index that was not yet permanently saved.
Namespace
Drupal\search_apiCode
public function addProcessor(ProcessorInterface $processor) {
$this->entity
->addProcessor($processor);
return $this;
}