function ImageEffectAddForm::buildForm
Same name in other branches
- 9 core/modules/image/src/Form/ImageEffectAddForm.php \Drupal\image\Form\ImageEffectAddForm::buildForm()
- 10 core/modules/image/src/Form/ImageEffectAddForm.php \Drupal\image\Form\ImageEffectAddForm::buildForm()
- 11.x core/modules/image/src/Form/ImageEffectAddForm.php \Drupal\image\Form\ImageEffectAddForm::buildForm()
Overrides ImageEffectFormBase::buildForm
File
-
core/
modules/ image/ src/ Form/ ImageEffectAddForm.php, line 46
Class
- ImageEffectAddForm
- Provides an add 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('Add %label effect', [
'%label' => $this->imageEffect
->label(),
]);
$form['actions']['submit']['#value'] = $this->t('Add effect');
return $form;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.