You are here

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

Same name and namespace in other branches
  1. 8.2 src/Form/ImageAPIOptimizePipelineFlushForm.php \Drupal\imageapi_optimize\Form\ImageAPIOptimizePipelineFlushForm::getQuestion()
  2. 4.x src/Form/ImageAPIOptimizePipelineFlushForm.php \Drupal\imageapi_optimize\Form\ImageAPIOptimizePipelineFlushForm::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/ImageAPIOptimizePipelineFlushForm.php, line 16

Class

ImageAPIOptimizePipelineFlushForm
Form controller for image optimize pipeline flush.

Namespace

Drupal\imageapi_optimize\Form

Code

public function getQuestion() {
  return $this
    ->t('Are you sure you want to apply the updated %name Image Optimize pipeline to all images?', [
    '%name' => $this->entity
      ->label(),
  ]);
}