You are here

public function ImageEffectDeleteForm::buildForm in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 64
Contains \Drupal\image\Form\ImageEffectDeleteForm.

Class

ImageEffectDeleteForm
Form for deleting an image effect.

Namespace

Drupal\image\Form

Code

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);
}