function ImageEffectBase::setWeight

Same name in other branches
  1. 8.9.x core/modules/image/src/ImageEffectBase.php \Drupal\image\ImageEffectBase::setWeight()
  2. 10 core/modules/image/src/ImageEffectBase.php \Drupal\image\ImageEffectBase::setWeight()
  3. 11.x core/modules/image/src/ImageEffectBase.php \Drupal\image\ImageEffectBase::setWeight()

Overrides ImageEffectInterface::setWeight

File

core/modules/image/src/ImageEffectBase.php, line 115

Class

ImageEffectBase
Provides a base class for image effects.

Namespace

Drupal\image

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.