public function ImageEffectDeleteForm::buildForm in Drupal 10
Same name and namespace in other branches
- 8 core/modules/image/src/Form/ImageEffectDeleteForm.php \Drupal\image\Form\ImageEffectDeleteForm::buildForm()
- 9 core/modules/image/src/Form/ImageEffectDeleteForm.php \Drupal\image\Form\ImageEffectDeleteForm::buildForm()
Form constructor.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
array The form structure.
Overrides ConfirmFormBase::buildForm
File
- core/
modules/ image/ src/ Form/ ImageEffectDeleteForm.php, line 61
Class
- ImageEffectDeleteForm
- Form for deleting an image effect.
Namespace
Drupal\image\FormCode
public function buildForm(array $form, FormStateInterface $form_state, ImageStyleInterface $image_style = NULL, $image_effect = NULL) {
$this->imageStyle = $image_style;
$this->imageEffect = $this->imageStyle
->getEffect($image_effect);
return parent::buildForm($form, $form_state);
}