public function ProcessorPluginBase::supportsStage in Facets 8
Same name in this branch
- 8 src/Processor/ProcessorPluginBase.php \Drupal\facets\Processor\ProcessorPluginBase::supportsStage()
- 8 modules/facets_summary/src/Processor/ProcessorPluginBase.php \Drupal\facets_summary\Processor\ProcessorPluginBase::supportsStage()
Checks whether this processor implements a particular stage.
Parameters
string $stage_identifier: The stage to check: self::STAGE_PRE_QUERY, self::STAGE_POST_QUERY or self::STAGE_BUILD.
Return value
bool TRUE if the processor runs on a particular stage; FALSE otherwise.
Overrides ProcessorInterface::supportsStage
File
- src/
Processor/ ProcessorPluginBase.php, line 45
Class
- ProcessorPluginBase
- A base class for plugins that implements most of the boilerplate.
Namespace
Drupal\facets\ProcessorCode
public function supportsStage($stage_identifier) {
$plugin_definition = $this
->getPluginDefinition();
return isset($plugin_definition['stages'][$stage_identifier]);
}