public function StaticContextDeleteForm::getQuestion in Page Manager 8.4
Same name and namespace in other branches
- 8 page_manager_ui/src/Form/StaticContextDeleteForm.php \Drupal\page_manager_ui\Form\StaticContextDeleteForm::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/ StaticContextDeleteForm.php, line 31
Class
- StaticContextDeleteForm
- Provides a form for deleting an access condition.
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'],
]);
}