3 namespace Drupal\devel\Plugin\Menu;
5 use Drupal\Core\Menu\MenuLinkDefault;
9 * Modifies the menu link to add current route path.
11 class RouteDetailMenuLink extends MenuLinkDefault {
16 public function getOptions() {
17 $options = parent::getOptions();
18 $options['query']['path'] = '/' . Url::fromRoute('<current>')->getInternalPath();
25 public function getCacheMaxAge() {