You are here

protected function AddVariantSelectionConfigure::getPageVariant in Page Manager 8.4

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

Get the page variant.

Parameters

array $cached_values: The cached values from the wizard.

Return value

\Drupal\page_manager\PageVariantInterface

4 calls to AddVariantSelectionConfigure::getPageVariant()
AddVariantSelectionConfigure::getConditions in page_manager_ui/src/Form/AddVariantSelectionConfigure.php
Custom logic for retrieving the conditions array from cached_values.
AddVariantSelectionConfigure::getContexts in page_manager_ui/src/Form/AddVariantSelectionConfigure.php
Custom logic for retrieving the contexts array from cached_values.
AddVariantSelectionConfigure::getParentRouteInfo in page_manager_ui/src/Form/AddVariantSelectionConfigure.php
Document the route name and parameters for redirect after submission.
AddVariantSelectionConfigure::setConditions in page_manager_ui/src/Form/AddVariantSelectionConfigure.php
Custom logic for setting the conditions array in cached_values.

File

page_manager_ui/src/Form/AddVariantSelectionConfigure.php, line 17

Class

AddVariantSelectionConfigure

Namespace

Drupal\page_manager_ui\Form

Code

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