function RouteDetailMenuLink::getCacheMaxAge

Same name in other branches
  1. 4.x src/Plugin/Menu/RouteDetailMenuLink.php \Drupal\devel\Plugin\Menu\RouteDetailMenuLink::getCacheMaxAge()

Overrides MenuLinkBase::getCacheMaxAge

File

src/Plugin/Menu/RouteDetailMenuLink.php, line 25

Class

RouteDetailMenuLink
Modifies the menu link to add current route path.

Namespace

Drupal\devel\Plugin\Menu

Code

public function getCacheMaxAge() : int {
    return 0;
}