public function ProcessorPluginBase::setWeight in Search API 8
Sets the weight for a specific processing stage.
Parameters
string $stage: The stage whose weight should be set.
int $weight: The weight for the given stage.
Return value
$this
Overrides ProcessorInterface::setWeight
See also
\Drupal\search_api\Processor\ProcessorPluginManager::getProcessingStages()
File
- src/
Processor/ ProcessorPluginBase.php, line 125
Class
- ProcessorPluginBase
- Defines a base class from which other processors may extend.
Namespace
Drupal\search_api\ProcessorCode
public function setWeight($stage, $weight) {
$this->configuration['weights'][$stage] = $weight;
return $this;
}