function ImageEffectEditForm::buildForm
Same name in other branches
- 8.9.x core/modules/image/src/Form/ImageEffectEditForm.php \Drupal\image\Form\ImageEffectEditForm::buildForm()
- 10 core/modules/image/src/Form/ImageEffectEditForm.php \Drupal\image\Form\ImageEffectEditForm::buildForm()
- 11.x core/modules/image/src/Form/ImageEffectEditForm.php \Drupal\image\Form\ImageEffectEditForm::buildForm()
Overrides ImageEffectFormBase::buildForm
File
-
core/
modules/ image/ src/ Form/ ImageEffectEditForm.php, line 18
Class
- ImageEffectEditForm
- Provides an edit form for image effects.
Namespace
Drupal\image\FormCode
public function buildForm(array $form, FormStateInterface $form_state, ImageStyleInterface $image_style = NULL, $image_effect = NULL) {
$form = parent::buildForm($form, $form_state, $image_style, $image_effect);
$form['#title'] = $this->t('Edit %label effect on style %style', [
'%label' => $this->imageEffect
->label(),
'%style' => $image_style->label(),
]);
$form['actions']['submit']['#value'] = $this->t('Update effect');
return $form;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.