You are here

protected function AccessConfigure::getParentRouteInfo in Page Manager 8

Same name and namespace in other branches
  1. 8.4 page_manager_ui/src/Form/AccessConfigure.php \Drupal\page_manager_ui\Form\AccessConfigure::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/AccessConfigure.php, line 18
Contains \Drupal\page_manager_ui\Form\AccessConfigure;

Class

AccessConfigure

Namespace

Drupal\page_manager_ui\Form

Code

protected function getParentRouteInfo($cached_values) {

  /** @var $page \Drupal\page_manager\PageInterface */
  $page = $cached_values['page'];
  $route_name = $page
    ->isNew() ? 'entity.page.add_step_form' : 'entity.page.edit_form';
  return [
    $route_name,
    [
      'machine_name' => $this->machine_name,
      'step' => 'access',
    ],
  ];
}