You are here

public function ImageEffectBase::setWeight in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/image/src/ImageEffectBase.php \Drupal\image\ImageEffectBase::setWeight()

Sets the weight for this image effect.

Parameters

int $weight: The weight for this image effect.

Return value

$this

Overrides ImageEffectInterface::setWeight

File

core/modules/image/src/ImageEffectBase.php, line 120
Contains \Drupal\image\ImageEffectBase.

Class

ImageEffectBase
Provides a base class for image effects.

Namespace

Drupal\image

Code

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