You are here

protected function PageVariantContextsForm::getContexts in Page Manager 8

Same name and namespace in other branches
  1. 8.4 page_manager_ui/src/Form/PageVariantContextsForm.php \Drupal\page_manager_ui\Form\PageVariantContextsForm::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/PageVariantContextsForm.php, line 89
Contains \Drupal\page_manager_ui\Form\PageVariantContextForm.

Class

PageVariantContextsForm

Namespace

Drupal\page_manager_ui\Form

Code

protected function getContexts($cached_values) {

  /** @var $page_variant \Drupal\page_manager\Entity\PageVariant */
  $page_variant = $cached_values['page_variant'];
  return $page_variant
    ->getContexts();
}