You are here

protected function AddVariantStaticContextDeleteForm::getPageVariant 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::getPageVariant()

Get the page variant.

Parameters

array $cached_values: The cached values from the wizard.

Return value

\Drupal\page_manager\PageVariantInterface

3 calls to AddVariantStaticContextDeleteForm::getPageVariant()
AddVariantStaticContextDeleteForm::getCancelUrl in page_manager_ui/src/Form/AddVariantStaticContextDeleteForm.php
Returns the route to go to if the user cancels the action.
AddVariantStaticContextDeleteForm::getQuestion in page_manager_ui/src/Form/AddVariantStaticContextDeleteForm.php
Returns the question to ask the user.
AddVariantStaticContextDeleteForm::submitForm in page_manager_ui/src/Form/AddVariantStaticContextDeleteForm.php
Form submission handler.

File

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

Class

AddVariantStaticContextDeleteForm

Namespace

Drupal\page_manager_ui\Form

Code

protected function getPageVariant($cached_values) {
  return $cached_values['page_variant'];
}