You are here

public function PanelsDeleteBlockForm::getQuestion in Panels 8.4

Same name and namespace in other branches
  1. 8.3 src/Form/PanelsDeleteBlockForm.php \Drupal\panels\Form\PanelsDeleteBlockForm::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

src/Form/PanelsDeleteBlockForm.php, line 82

Class

PanelsDeleteBlockForm
Provides a form for deleting an access condition.

Namespace

Drupal\panels\Form

Code

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