You are here

public function ProcessorPluginManager::getProcessingStages in Search API 8

Retrieves information about the available processing stages.

These are then used by processors in their "stages" definition to specify in which stages they will run.

Return value

array An associative array mapping stage identifiers to information about that stage. The information itself is an associative array with the following keys:

  • label: The translated label for this stage.

File

src/Processor/ProcessorPluginManager.php, line 61

Class

ProcessorPluginManager
Manages processor plugins.

Namespace

Drupal\search_api\Processor

Code

public function getProcessingStages() {
  return [
    ProcessorInterface::STAGE_PREPROCESS_INDEX => [
      'label' => $this
        ->t('Preprocess index'),
    ],
    ProcessorInterface::STAGE_PREPROCESS_QUERY => [
      'label' => $this
        ->t('Preprocess query'),
    ],
    ProcessorInterface::STAGE_POSTPROCESS_QUERY => [
      'label' => $this
        ->t('Postprocess query'),
    ],
  ];
}