You are here

public function AddVariantStaticContextDeleteForm::getQuestion in Page Manager 8.4

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

page_manager_ui/src/Form/AddVariantStaticContextDeleteForm.php, line 21

Class

AddVariantStaticContextDeleteForm

Namespace

Drupal\page_manager_ui\Form

Code

public function getQuestion() {
  $cached_values = $this
    ->getTempstore();

  /** @var $page \Drupal\page_manager\PageInterface */
  $page_variant = $this
    ->getPageVariant($cached_values);
  return $this
    ->t('Are you sure you want to delete the static context %label?', [
    '%label' => $page_variant
      ->getStaticContext($this->context_id)['label'],
  ]);
}