You are here

public function BlockDeleteForm::getQuestion in Context 8

Same name and namespace in other branches
  1. 8.4 src/Reaction/Blocks/Form/BlockDeleteForm.php \Drupal\context\Reaction\Blocks\Form\BlockDeleteForm::getQuestion()
  2. 8.0 src/Reaction/Blocks/Form/BlockDeleteForm.php \Drupal\context\Reaction\Blocks\Form\BlockDeleteForm::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

src/Reaction/Blocks/Form/BlockDeleteForm.php, line 77

Class

BlockDeleteForm

Namespace

Drupal\context\Reaction\Blocks\Form

Code

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