function ImageEffectAddForm::prepareImageEffect
Same name in other branches
- 8.9.x core/modules/image/src/Form/ImageEffectAddForm.php \Drupal\image\Form\ImageEffectAddForm::prepareImageEffect()
- 10 core/modules/image/src/Form/ImageEffectAddForm.php \Drupal\image\Form\ImageEffectAddForm::prepareImageEffect()
- 11.x core/modules/image/src/Form/ImageEffectAddForm.php \Drupal\image\Form\ImageEffectAddForm::prepareImageEffect()
Overrides ImageEffectFormBase::prepareImageEffect
File
-
core/
modules/ image/ src/ Form/ ImageEffectAddForm.php, line 61
Class
- ImageEffectAddForm
- Provides an add form for image effects.
Namespace
Drupal\image\FormCode
protected function prepareImageEffect($image_effect) {
$image_effect = $this->effectManager
->createInstance($image_effect);
// Set the initial weight so this effect comes last.
$image_effect->setWeight(count($this->imageStyle
->getEffects()));
return $image_effect;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.