public function ProcessorPluginBase::supportsStage in Search API 8
Checks whether this processor implements a particular stage.
Parameters
string $stage: The stage to check: one of the self::STAGE_* constants.
Return value
bool TRUE if the processor runs on this particular stage; FALSE otherwise.
Overrides ProcessorInterface::supportsStage
1 call to ProcessorPluginBase::supportsStage()
- ProcessorPluginBase::requiresReindexing in src/
Processor/ ProcessorPluginBase.php - Determines whether re-indexing is required after a settings change.
2 methods override ProcessorPluginBase::supportsStage()
- NoUi::supportsStage in tests/
search_api_test_no_ui/ src/ Plugin/ search_api/ processor/ NoUi.php - Checks whether this processor implements a particular stage.
- TestProcessor::supportsStage in tests/
search_api_test/ src/ Plugin/ search_api/ processor/ TestProcessor.php - Checks whether this processor implements a particular stage.
File
- src/
Processor/ ProcessorPluginBase.php, line 106
Class
- ProcessorPluginBase
- Defines a base class from which other processors may extend.
Namespace
Drupal\search_api\ProcessorCode
public function supportsStage($stage) {
$plugin_definition = $this
->getPluginDefinition();
return isset($plugin_definition['stages'][$stage]);
}