protected function SelectionConfigure::getPageVariant in Page Manager 8
Same name and namespace in other branches
- 8.4 page_manager_ui/src/Form/SelectionConfigure.php \Drupal\page_manager_ui\Form\SelectionConfigure::getPageVariant()
Get the page variant.
Parameters
array $cached_values: The cached values from the wizard.
Return value
\Drupal\page_manager\PageVariantInterface
4 calls to SelectionConfigure::getPageVariant()
- SelectionConfigure::getConditions in page_manager_ui/
src/ Form/ SelectionConfigure.php - Custom logic for retrieving the conditions array from cached_values.
- SelectionConfigure::getContexts in page_manager_ui/
src/ Form/ SelectionConfigure.php - Custom logic for retrieving the contexts array from cached_values.
- SelectionConfigure::getParentRouteInfo in page_manager_ui/
src/ Form/ SelectionConfigure.php - Document the route name and parameters for redirect after submission.
- SelectionConfigure::setConditions in page_manager_ui/
src/ Form/ SelectionConfigure.php - Custom logic for setting the conditions array in cached_values.
File
- page_manager_ui/
src/ Form/ SelectionConfigure.php, line 29 - Contains \Drupal\page_manager_ui\Form\SelectionConfigure.
Class
Namespace
Drupal\page_manager_ui\FormCode
protected function getPageVariant($cached_values) {
if (isset($cached_values['page_variant'])) {
return $cached_values['page_variant'];
}
/** @var $page \Drupal\page_manager\PageInterface */
$page = $cached_values['page'];
return $page
->getVariant($this->variantMachineName);
}