protected function AddVariantStaticContextConfigure::getPageVariant in Page Manager 8
Same name and namespace in other branches
- 8.4 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 24 - Contains \Drupal\page_manager_ui\Form\AddVariantStaticContextConfigure.
Class
Namespace
Drupal\page_manager_ui\FormCode
protected function getPageVariant($cached_values) {
return $cached_values['page_variant'];
}