public function ProcessorInterface::getDefaultWeight in Facets 8
Same name in this branch
- 8 src/Processor/ProcessorInterface.php \Drupal\facets\Processor\ProcessorInterface::getDefaultWeight()
- 8 modules/facets_summary/src/Processor/ProcessorInterface.php \Drupal\facets_summary\Processor\ProcessorInterface::getDefaultWeight()
Returns the default weight for a specific processing stage.
Some processors should ensure they run earlier or later in a particular stage. Processors with lower weights are run earlier. The default value is used when the processor is first enabled. It can then be changed through reordering by the user.
Parameters
string $stage: The stage whose default weight should be returned. See \Drupal\facets\Processor\ProcessorPluginManager::getProcessingStages() for the valid values.
Return value
int The default weight for the given stage.
1 method overrides ProcessorInterface::getDefaultWeight()
- ProcessorPluginBase::getDefaultWeight in src/
Processor/ ProcessorPluginBase.php - Returns the default weight for a specific processing stage.
File
- src/
Processor/ ProcessorInterface.php, line 89
Class
- ProcessorInterface
- Describes a processor.
Namespace
Drupal\facets\ProcessorCode
public function getDefaultWeight($stage);