protected function AddVariantContextsForm::getContexts in Page Manager 8.4
Same name and namespace in other branches
- 8 page_manager_ui/src/Form/AddVariantContextsForm.php \Drupal\page_manager_ui\Form\AddVariantContextsForm::getContexts()
Returns the contexts already available in the wizard.
Parameters
mixed $cached_values:
Return value
\Drupal\Core\Plugin\Context\ContextInterface[]
Overrides ManageContext::getContexts
File
- page_manager_ui/
src/ Form/ AddVariantContextsForm.php, line 89
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();
}