You are here

protected function PanelizerWizardContextConfigure::getContexts in Panelizer 8.3

Same name and namespace in other branches
  1. 8.5 src/Form/PanelizerWizardContextConfigure.php \Drupal\panelizer\Form\PanelizerWizardContextConfigure::getContexts()
  2. 8.4 src/Form/PanelizerWizardContextConfigure.php \Drupal\panelizer\Form\PanelizerWizardContextConfigure::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

src/Form/PanelizerWizardContextConfigure.php, line 59

Class

PanelizerWizardContextConfigure

Namespace

Drupal\panelizer\Form

Code

protected function getContexts($cached_values) {
  $static_contexts = isset($cached_values['contexts']) ? $cached_values['contexts'] : [];
  $static_contexts = $this->contextMapper
    ->getContextValues($static_contexts);
  return $static_contexts;
}