function ConfirmFormInterface::getQuestion

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Form/ConfirmFormInterface.php \Drupal\Core\Form\ConfirmFormInterface::getQuestion()
  2. 10 core/lib/Drupal/Core/Form/ConfirmFormInterface.php \Drupal\Core\Form\ConfirmFormInterface::getQuestion()
  3. 8.9.x core/lib/Drupal/Core/Form/ConfirmFormInterface.php \Drupal\Core\Form\ConfirmFormInterface::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.

3 methods override ConfirmFormInterface::getQuestion()
ConfirmFormTestForm::getQuestion in core/modules/system/tests/modules/form_test/src/ConfirmFormTestForm.php
Returns the question to ask the user.
LayoutBuilderDisableForm::getQuestion in core/modules/layout_builder/src/Form/LayoutBuilderDisableForm.php
Returns the question to ask the user.
WorkspaceMergeForm::getQuestion in core/modules/workspaces/src/Form/WorkspaceMergeForm.php
Returns the question to ask the user.

File

core/lib/Drupal/Core/Form/ConfirmFormInterface.php, line 16

Class

ConfirmFormInterface
Defines the behavior a confirmation form.

Namespace

Drupal\Core\Form

Code

public function getQuestion();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.