You are here

public function ReactionDeleteForm::getQuestion in Context 8

Same name and namespace in other branches
  1. 8.4 modules/context_ui/src/Form/ReactionDeleteForm.php \Drupal\context_ui\Form\ReactionDeleteForm::getQuestion()
  2. 8.0 modules/context_ui/src/Form/ReactionDeleteForm.php \Drupal\context_ui\Form\ReactionDeleteForm::getQuestion()

Returns the question to ask the user.

Return value

string The form question. The page title will be set to this value.

Overrides ConfirmFormInterface::getQuestion

File

modules/context_ui/src/Form/ReactionDeleteForm.php, line 59

Class

ReactionDeleteForm

Namespace

Drupal\context_ui\Form

Code

public function getQuestion() {
  return $this
    ->t('Are you sure you want to remove the %reaction reaction.', [
    '%reaction' => $this->reaction
      ->getPluginDefinition()['label'],
  ]);
}