You are here

public function Index::removeProcessor in Search API 8

Removes a processor from this index.

Parameters

string $processor_id: The ID of the processor to remove.

Return value

$this

Overrides IndexInterface::removeProcessor

1 call to Index::removeProcessor()
Index::preSave in src/Entity/Index.php
Acts on an entity before the presave hook is invoked.

File

src/Entity/Index.php, line 624

Class

Index
Defines the search index configuration entity.

Namespace

Drupal\search_api\Entity

Code

public function removeProcessor($processor_id) {

  // Make sure the processorInstances are loaded before trying to remove a
  // plugin from them.
  if ($this->processorInstances === NULL) {
    $this
      ->getProcessors();
  }
  unset($this->processorInstances[$processor_id]);
  return $this;
}