You are here

public function ContextDisableForm::getQuestion in Context 8.4

Same name and namespace in other branches
  1. 8 modules/context_ui/src/Form/ContextDisableForm.php \Drupal\context_ui\Form\ContextDisableForm::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

modules/context_ui/src/Form/ContextDisableForm.php, line 45

Class

ContextDisableForm
Provides a form to disable a context.

Namespace

Drupal\context_ui\Form

Code

public function getQuestion() {
  return $this
    ->t('Are you sure you want to %status the %label context?', [
    '%status' => $this->entity
      ->disabled() ? "enable" : "disable",
    '%label' => $this->entity
      ->getLabel(),
  ]);
}