You are here

public function ImageAPIOptimizeProcessorBase::setWeight in Image Optimize (or ImageAPI Optimize) 8.3

Same name and namespace in other branches
  1. 8.2 src/ImageAPIOptimizeProcessorBase.php \Drupal\imageapi_optimize\ImageAPIOptimizeProcessorBase::setWeight()
  2. 4.x 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_optimize

Code

public function setWeight($weight) {
  $this->weight = $weight;
  return $this;
}