You are here

public function ProcessorPluginBase::supportsStage in Facets 8

Same name in this branch
  1. 8 src/Processor/ProcessorPluginBase.php \Drupal\facets\Processor\ProcessorPluginBase::supportsStage()
  2. 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 that can be supported by the processor, check the constants defined in this class for a list of options.

Return value

bool TRUE if the processor runs on a particular stage; FALSE otherwise.

Overrides ProcessorInterface::supportsStage

File

modules/facets_summary/src/Processor/ProcessorPluginBase.php, line 37

Class

ProcessorPluginBase
A base class for plugins that implements most of the boilerplate.

Namespace

Drupal\facets_summary\Processor

Code

public function supportsStage($stage_identifier) {
  $plugin_definition = $this
    ->getPluginDefinition();
  return isset($plugin_definition['stages'][$stage_identifier]);
}