You are here

public function ImageEffectDeleteForm::getQuestion in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/image/src/Form/ImageEffectDeleteForm.php \Drupal\image\Form\ImageEffectDeleteForm::getQuestion()
  2. 9 core/modules/image/src/Form/ImageEffectDeleteForm.php \Drupal\image\Form\ImageEffectDeleteForm::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

core/modules/image/src/Form/ImageEffectDeleteForm.php, line 33

Class

ImageEffectDeleteForm
Form for deleting an image effect.

Namespace

Drupal\image\Form

Code

public function getQuestion() {
  return $this
    ->t('Are you sure you want to delete the @effect effect from the %style style?', [
    '%style' => $this->imageStyle
      ->label(),
    '@effect' => $this->imageEffect
      ->label(),
  ]);
}