public function UnsavedIndexConfiguration::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.
Overrides IndexInterface::getProcessorsByStage
File
- src/
UnsavedIndexConfiguration.php, line 372
Class
- UnsavedIndexConfiguration
- Represents a configuration of an index that was not yet permanently saved.
Namespace
Drupal\search_apiCode
public function getProcessorsByStage($stage, array $overrides = []) {
return $this->entity
->getProcessorsByStage($stage, $overrides);
}