You are here

public function IndexInterface::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.

2 methods override IndexInterface::getProcessor()
Index::getProcessor in src/Entity/Index.php
Retrieves a specific processor plugin for this index.
UnsavedIndexConfiguration::getProcessor in src/UnsavedIndexConfiguration.php
Retrieves a specific processor plugin for this index.

File

src/IndexInterface.php, line 336

Class

IndexInterface
Defines the interface for index entities.

Namespace

Drupal\search_api

Code

public function getProcessor($processor_id);