protected function SelectionDelete::getPageVariant in Page Manager 8.4
Same name and namespace in other branches
- 8 page_manager_ui/src/Form/SelectionDelete.php \Drupal\page_manager_ui\Form\SelectionDelete::getPageVariant()
Get the page variant.
Parameters
array $cached_values: The cached values from the wizard.
Return value
\Drupal\page_manager\PageVariantInterface
4 calls to SelectionDelete::getPageVariant()
- SelectionDelete::getConditions in page_manager_ui/
src/ Form/ SelectionDelete.php - Custom logic for retrieving the conditions array from cached_values.
- SelectionDelete::getContexts in page_manager_ui/
src/ Form/ SelectionDelete.php - Custom logic for retrieving the contexts array from cached_values.
- SelectionDelete::getParentRouteInfo in page_manager_ui/
src/ Form/ SelectionDelete.php - Document the route name and parameters for redirect after submission.
- SelectionDelete::setConditions in page_manager_ui/
src/ Form/ SelectionDelete.php - Custom logic for setting the conditions array in cached_values.
File
- page_manager_ui/
src/ Form/ SelectionDelete.php, line 25
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);
}