You are here

public function ProcessorInterface::getDefaultWeight in Facets 8

Same name in this branch
  1. 8 src/Processor/ProcessorInterface.php \Drupal\facets\Processor\ProcessorInterface::getDefaultWeight()
  2. 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 modules/facets_summary/src/Processor/ProcessorPluginBase.php
Returns the default weight for a specific processing stage.

File

modules/facets_summary/src/Processor/ProcessorInterface.php, line 85

Class

ProcessorInterface
Describes a processor.

Namespace

Drupal\facets_summary\Processor

Code

public function getDefaultWeight($stage);