public function AddVariantStaticContextDeleteForm::getQuestion in Page Manager 8
Same name and namespace in other branches
- 8.4 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 27 - Contains \Drupal\page_manager_ui\Form\AddVariantStaticContextDeleteForm.
Class
Namespace
Drupal\page_manager_ui\FormCode
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'],
]);
}