public function FacetInterface::getProcessorsByStage in Facets 8
Loads this facets processors for a specific stage.
Parameters
string $stage: The stage for which to return the processors. One of the \Drupal\facets\Processor\ProcessorInterface::STAGE_* constants.
bool $only_enabled: (optional) If FALSE, also include disabled processors. Otherwise, only load enabled ones.
Return value
\Drupal\facets\Processor\ProcessorInterface[] An array of all enabled (or available, if if $only_enabled is FALSE) processors that support the given stage, ordered by the weight for that stage.
1 method overrides FacetInterface::getProcessorsByStage()
- Facet::getProcessorsByStage in src/
Entity/ Facet.php - Loads this facets processors for a specific stage.
File
- src/
FacetInterface.php, line 399
Class
- FacetInterface
- The facet entity.
Namespace
Drupal\facetsCode
public function getProcessorsByStage($stage, $only_enabled = TRUE);