You are here

protected function SelectionConfigure::getContexts in Page Manager 8.4

Same name and namespace in other branches
  1. 8 page_manager_ui/src/Form/SelectionConfigure.php \Drupal\page_manager_ui\Form\SelectionConfigure::getContexts()

Custom logic for retrieving the contexts array from cached_values.

Parameters

$cached_values:

Return value

\Drupal\Core\Plugin\Context\ContextInterface[]

Overrides ConditionConfigure::getContexts

File

page_manager_ui/src/Form/SelectionConfigure.php, line 89

Class

SelectionConfigure

Namespace

Drupal\page_manager_ui\Form

Code

protected function getContexts($cached_values) {

  /** @var $page \Drupal\page_manager\Entity\PageVariant */
  $page_variant = $this
    ->getPageVariant($cached_values);
  return $page_variant
    ->getContexts();
}