protected function PageVariantSelectionForm::getContexts in Page Manager 8
Same name and namespace in other branches
- 8.4 page_manager_ui/src/Form/PageVariantSelectionForm.php \Drupal\page_manager_ui\Form\PageVariantSelectionForm::getContexts()
Custom logic for retrieving the contexts array from cached_values.
Parameters
$cached_values:
Return value
\Drupal\Core\Plugin\Context\ContextInterface[]
Overrides ManageConditions::getContexts
File
- page_manager_ui/
src/ Form/ PageVariantSelectionForm.php, line 64 - Contains \Drupal\page_manager_ui\Form\PageVariantSelectionForm.
Class
Namespace
Drupal\page_manager_ui\FormCode
protected function getContexts($cached_values) {
/** @var $page_variant \Drupal\page_manager\Entity\PageVariant */
$page_variant = $cached_values['page_variant'];
return $page_variant
->getContexts();
}