You are here

public function UnsavedIndexConfiguration::getProcessor in Search API 8

Retrieves a specific processor plugin for this index.

Parameters

string $processor_id: The ID of the processor plugin to return.

Return value

\Drupal\search_api\Processor\ProcessorInterface The processor plugin with the given ID.

Throws

\Drupal\search_api\SearchApiException Thrown if the specified processor isn't enabled for this index, or couldn't be loaded.

Overrides IndexInterface::getProcessor

File

src/UnsavedIndexConfiguration.php, line 386

Class

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

Namespace

Drupal\search_api

Code

public function getProcessor($processor_id) {
  return $this->entity
    ->getProcessor($processor_id);
}