protected function PanelizerWizardContextConfigure::getContexts in Panelizer 8.3
Same name and namespace in other branches
- 8.5 src/Form/PanelizerWizardContextConfigure.php \Drupal\panelizer\Form\PanelizerWizardContextConfigure::getContexts()
- 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
Namespace
Drupal\panelizer\FormCode
protected function getContexts($cached_values) {
$static_contexts = isset($cached_values['contexts']) ? $cached_values['contexts'] : [];
$static_contexts = $this->contextMapper
->getContextValues($static_contexts);
return $static_contexts;
}