You are here

protected function PanelizerWizardContextForm::getContexts in Panelizer 8.5

Same name and namespace in other branches
  1. 8.3 src/Form/PanelizerWizardContextForm.php \Drupal\panelizer\Form\PanelizerWizardContextForm::getContexts()
  2. 8.4 src/Form/PanelizerWizardContextForm.php \Drupal\panelizer\Form\PanelizerWizardContextForm::getContexts()

Returns the contexts already available in the wizard.

Parameters

mixed $cached_values:

Return value

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

Overrides ManageContext::getContexts

File

src/Form/PanelizerWizardContextForm.php, line 98

Class

PanelizerWizardContextForm
Simple wizard step form.

Namespace

Drupal\panelizer\Form

Code

protected function getContexts($cached_values) {
  return $cached_values['plugin']
    ->getPattern()
    ->getDefaultContexts($this->tempstoreFactory, $this
    ->getTempstoreId(), $this->machine_name);
}