public function ImageAPIOptimizeProcessorBase::setWeight in Image Optimize (or ImageAPI Optimize) 4.x
Same name and namespace in other branches
- 8.3 src/ImageAPIOptimizeProcessorBase.php \Drupal\imageapi_optimize\ImageAPIOptimizeProcessorBase::setWeight()
- 8.2 src/ImageAPIOptimizeProcessorBase.php \Drupal\imageapi_optimize\ImageAPIOptimizeProcessorBase::setWeight()
Sets the weight for this image optimize processor.
Parameters
int $weight: The weight for this image optimize processor.
Return value
$this
Overrides ImageAPIOptimizeProcessorInterface::setWeight
File
- src/
ImageAPIOptimizeProcessorBase.php, line 106
Class
- ImageAPIOptimizeProcessorBase
- Provides a base class for image optimize processors.
Namespace
Drupal\imageapi_optimizeCode
public function setWeight($weight) {
$this->weight = $weight;
return $this;
}