You are here

protected function MenuLinkConfig::urlRouteParameters in Config menu link 8

Gets an array of placeholders for this entity.

Individual entity classes may override this method to add additional placeholders if desired. If so, they should be sure to replicate the property caching logic.

Parameters

string $rel: The link relationship type, for example: canonical or edit-form.

Return value

array An array of URI placeholders.

Overrides EntityBase::urlRouteParameters

File

src/Entity/MenuLinkConfig.php, line 178
Contains \Drupal\menu_link_config\Entity\MenuLinkConfig.

Class

MenuLinkConfig
Defines the menu link config entity.

Namespace

Drupal\menu_link_config\Entity

Code

protected function urlRouteParameters($rel) {
  return [
    'menu_link_plugin' => 'menu_link_config:' . $this
      ->id(),
    'menu_link_config' => $this
      ->id(),
  ];
}