You are here

public function PageDeleteForm::getQuestion in Page Manager 8

Same name and namespace in other branches
  1. 8.4 page_manager_ui/src/Form/PageDeleteForm.php \Drupal\page_manager_ui\Form\PageDeleteForm::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

page_manager_ui/src/Form/PageDeleteForm.php, line 22
Contains \Drupal\page_manager_ui\Form\PageDeleteForm.

Class

PageDeleteForm
Provides a form for deleting a page entity.

Namespace

Drupal\page_manager_ui\Form

Code

public function getQuestion() {
  return $this
    ->t('Are you sure you want to delete the page %name?', [
    '%name' => $this->entity
      ->label(),
  ]);
}