You are here

public function ImageAPIOptimizeProcessorDeleteForm::buildForm in Image Optimize (or ImageAPI Optimize) 4.x

Same name and namespace in other branches
  1. 8.3 src/Form/ImageAPIOptimizeProcessorDeleteForm.php \Drupal\imageapi_optimize\Form\ImageAPIOptimizeProcessorDeleteForm::buildForm()
  2. 8.2 src/Form/ImageAPIOptimizeProcessorDeleteForm.php \Drupal\imageapi_optimize\Form\ImageAPIOptimizeProcessorDeleteForm::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

src/Form/ImageAPIOptimizeProcessorDeleteForm.php, line 59

Class

ImageAPIOptimizeProcessorDeleteForm
Form for deleting an image optimize processor.

Namespace

Drupal\imageapi_optimize\Form

Code

public function buildForm(array $form, FormStateInterface $form_state, ImageAPIOptimizePipelineInterface $imageapi_optimize_pipeline = NULL, $imageapi_optimize_processor = NULL) {
  $this->imageAPIOptimizePipeline = $imageapi_optimize_pipeline;
  $this->imageAPIOptimizeProcessor = $this->imageAPIOptimizePipeline
    ->getProcessor($imageapi_optimize_processor);
  return parent::buildForm($form, $form_state);
}