You are here

public function PanelizerWizardContextDeleteForm::getQuestion in Panelizer 8.3

Same name and namespace in other branches
  1. 8.5 src/Form/PanelizerWizardContextDeleteForm.php \Drupal\panelizer\Form\PanelizerWizardContextDeleteForm::getQuestion()
  2. 8.4 src/Form/PanelizerWizardContextDeleteForm.php \Drupal\panelizer\Form\PanelizerWizardContextDeleteForm::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/PanelizerWizardContextDeleteForm.php, line 24

Class

PanelizerWizardContextDeleteForm
Provides a form for deleting a context.

Namespace

Drupal\panelizer\Form

Code

public function getQuestion() {
  $cached_values = $this
    ->getTempstore();
  $context = $cached_values['contexts'][$this->context_id];
  return $this
    ->t('Are you sure you want to delete the context @label?', [
    '@label' => $context['label'],
  ]);
}