You are here

public function MenuLinkConfigMapper::getBaseRouteParameters in Config menu link 8

Returns the route parameters for the base route the mapper is attached to.

Return value

array

Overrides ConfigEntityMapper::getBaseRouteParameters

File

src/MenuLinkConfigMapper.php, line 21
Contains \Drupal\menu_link_config\MenuLinkConfigMapper.

Class

MenuLinkConfigMapper
Provides configuration mapper for configuration menu links.

Namespace

Drupal\menu_link_config

Code

public function getBaseRouteParameters() {
  return [
    'menu_link_plugin' => 'menu_link_config:' . $this->entity
      ->id(),
    'menu_link_config' => $this->entity
      ->id(),
  ];
}