public function IndexInterface::getProcessorsByStage in Search API 8
Loads this index's processors for a specific stage.
Parameters
string $stage: The stage for which to return the processors. One of the \Drupal\search_api\Processor\ProcessorInterface::STAGE_* constants.
array[] $overrides: (optional) Overrides to apply to the index's processors, keyed by processor IDs with their respective overridden settings as values.
Return value
\Drupal\search_api\Processor\ProcessorInterface[] An array of all enabled processors that support the given stage, ordered by the weight for that stage.
2 methods override IndexInterface::getProcessorsByStage()
- Index::getProcessorsByStage in src/
Entity/ Index.php - Loads this index's processors for a specific stage.
- UnsavedIndexConfiguration::getProcessorsByStage in src/
UnsavedIndexConfiguration.php - Loads this index's processors for a specific stage.
File
- src/
IndexInterface.php, line 305
Class
- IndexInterface
- Defines the interface for index entities.
Namespace
Drupal\search_apiCode
public function getProcessorsByStage($stage, array $overrides = []);