You are here

public function PhotosImageDeleteForm::getQuestion in Album Photos 8.5

Same name and namespace in other branches
  1. 8.4 src/Form/PhotosImageDeleteForm.php \Drupal\photos\Form\PhotosImageDeleteForm::getQuestion()
  2. 6.0.x src/Form/PhotosImageDeleteForm.php \Drupal\photos\Form\PhotosImageDeleteForm::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 ContentEntityDeleteForm::getQuestion

File

src/Form/PhotosImageDeleteForm.php, line 22

Class

PhotosImageDeleteForm
Defines a confirmation form for deleting images.

Namespace

Drupal\photos\Form

Code

public function getQuestion() {
  return $this
    ->t('Do you want to delete this image %title?', [
    '%title' => $this->entity
      ->label(),
  ]);
}