You are here

protected function AddVariantStaticContextConfigure::getContexts in Page Manager 8.4

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

Custom logic for retrieving the contexts array from cached_values.

Parameters

$cached_values:

Return value

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

Overrides ContextConfigure::getContexts

File

page_manager_ui/src/Form/AddVariantStaticContextConfigure.php, line 38

Class

AddVariantStaticContextConfigure

Namespace

Drupal\page_manager_ui\Form

Code

protected function getContexts($cached_values) {
  return $this
    ->getPageVariant($cached_values)
    ->getContexts();
}