You are here

protected function AddVariantSelectionConfigure::getParentRouteInfo in Page Manager 8.4

Same name and namespace in other branches
  1. 8 page_manager_ui/src/Form/AddVariantSelectionConfigure.php \Drupal\page_manager_ui\Form\AddVariantSelectionConfigure::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 ConditionConfigure::getParentRouteInfo

File

page_manager_ui/src/Form/AddVariantSelectionConfigure.php, line 24

Class

AddVariantSelectionConfigure

Namespace

Drupal\page_manager_ui\Form

Code

protected function getParentRouteInfo($cached_values) {
  $page_variant = $this
    ->getPageVariant($cached_values);
  return [
    'entity.page_variant.add_step_form',
    [
      'page' => $page_variant
        ->getPage()
        ->id(),
      'machine_name' => $this->machine_name,
      'step' => 'selection',
    ],
  ];
}