function FilterDisableForm::getQuestion

Same name and namespace in other branches
  1. 9 core/modules/filter/src/Form/FilterDisableForm.php \Drupal\filter\Form\FilterDisableForm::getQuestion()
  2. 8.9.x core/modules/filter/src/Form/FilterDisableForm.php \Drupal\filter\Form\FilterDisableForm::getQuestion()
  3. 11.x core/modules/filter/src/Form/FilterDisableForm.php \Drupal\filter\Form\FilterDisableForm::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/filter/src/Form/FilterDisableForm.php, line 19

Class

FilterDisableForm
Provides the filter format disable form.

Namespace

Drupal\filter\Form

Code

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

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