You are here

protected function PanelizerWizardContextConfigure::getParentRouteInfo in Panelizer 8.3

Same name and namespace in other branches
  1. 8.5 src/Form/PanelizerWizardContextConfigure.php \Drupal\panelizer\Form\PanelizerWizardContextConfigure::getParentRouteInfo()
  2. 8.4 src/Form/PanelizerWizardContextConfigure.php \Drupal\panelizer\Form\PanelizerWizardContextConfigure::getParentRouteInfo()

Document the route name and parameters for redirect after submission.

Parameters

$cached_values:

Return value

array In the format of return ['route.name', ['machine_name' => $this->machine_name, 'step' => 'step_name]];

Overrides ContextConfigure::getParentRouteInfo

File

src/Form/PanelizerWizardContextConfigure.php, line 49

Class

PanelizerWizardContextConfigure

Namespace

Drupal\panelizer\Form

Code

protected function getParentRouteInfo($cached_values) {
  return [
    'panelizer.wizard.add.step',
    [
      'machine_name' => $cached_values['id'],
      'step' => 'contexts',
    ],
  ];
}