You are here

public function ImageAPIOptimizeProcessorDeleteForm::getQuestion in Image Optimize (or ImageAPI Optimize) 8.3

Same name and namespace in other branches
  1. 8.2 src/Form/ImageAPIOptimizeProcessorDeleteForm.php \Drupal\imageapi_optimize\Form\ImageAPIOptimizeProcessorDeleteForm::getQuestion()
  2. 4.x src/Form/ImageAPIOptimizeProcessorDeleteForm.php \Drupal\imageapi_optimize\Form\ImageAPIOptimizeProcessorDeleteForm::getQuestion()

Returns the question to ask the user.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The form question. The page title will be set to this value.

Overrides ConfirmFormInterface::getQuestion

File

src/Form/ImageAPIOptimizeProcessorDeleteForm.php, line 31

Class

ImageAPIOptimizeProcessorDeleteForm
Form for deleting an image optimize processor.

Namespace

Drupal\imageapi_optimize\Form

Code

public function getQuestion() {
  return $this
    ->t('Are you sure you want to delete the @processor processor from the %pipeline pipeline?', [
    '%pipeline' => $this->imageAPIOptimizePipeline
      ->label(),
    '@processor' => $this->imageAPIOptimizeProcessor
      ->label(),
  ]);
}