You are here

public function MenuLinkConfig::getDeleteRoute in Config menu link 8

Returns route information for a route to delete the menu link.

Return value

\Drupal\Core\Url|null A Url object, or NULL if there is no route (e.g. when the link is not deletable).

Overrides MenuLinkContent::getDeleteRoute

File

src/Plugin/Menu/MenuLinkConfig.php, line 120
Contains \Drupal\menu_link_config\Plugin\Menu\MenuLinkConfig.

Class

MenuLinkConfig
Provides a menu link plugin based upon storage in config.

Namespace

Drupal\menu_link_config\Plugin\Menu

Code

public function getDeleteRoute() {

  // @todo
  return NULL;
}