You are here

protected function AddVariantStaticContextConfigure::getPageVariant in Page Manager 8.4

Same name and namespace in other branches
  1. 8 page_manager_ui/src/Form/AddVariantStaticContextConfigure.php \Drupal\page_manager_ui\Form\AddVariantStaticContextConfigure::getPageVariant()

Get the page variant.

Parameters

array $cached_values: The cached values from the wizard.

Return value

\Drupal\page_manager\PageVariantInterface

2 calls to AddVariantStaticContextConfigure::getPageVariant()
AddVariantStaticContextConfigure::addContext in page_manager_ui/src/Form/AddVariantStaticContextConfigure.php
Custom logic for adding a context to the cached_values contexts array.
AddVariantStaticContextConfigure::getParentRouteInfo in page_manager_ui/src/Form/AddVariantStaticContextConfigure.php
Document the route name and parameters for redirect after submission.

File

page_manager_ui/src/Form/AddVariantStaticContextConfigure.php, line 18

Class

AddVariantStaticContextConfigure

Namespace

Drupal\page_manager_ui\Form

Code

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