You are here

protected function Page::urlRouteParameters in Page Manager 8

Same name and namespace in other branches
  1. 8.4 src/Entity/Page.php \Drupal\page_manager\Entity\Page::urlRouteParameters()

@todo: Remove this as part of https://www.drupal.org/node/2696683.

Overrides EntityBase::urlRouteParameters

File

src/Entity/Page.php, line 481
Contains \Drupal\page_manager\Entity\Page.

Class

Page
Defines a Page entity class.

Namespace

Drupal\page_manager\Entity

Code

protected function urlRouteParameters($rel) {
  if ($rel == 'edit-form') {
    $uri_route_parameters = [];
    $uri_route_parameters['machine_name'] = $this
      ->id();
    $uri_route_parameters['step'] = 'general';
    return $uri_route_parameters;
  }
  return parent::urlRouteParameters($rel);
}