You are here

public function ModulesListConfirmForm::getQuestion in Drupal 9

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

1 method overrides ModulesListConfirmForm::getQuestion()
ModulesListExperimentalConfirmForm::getQuestion in core/modules/system/src/Form/ModulesListExperimentalConfirmForm.php
Returns the question to ask the user.

File

core/modules/system/src/Form/ModulesListConfirmForm.php, line 80

Class

ModulesListConfirmForm
Builds a confirmation form for enabling modules with dependencies.

Namespace

Drupal\system\Form

Code

public function getQuestion() {
  return $this
    ->t('Some required modules must be enabled');
}