You are here

public function RouteDetailMenuLink::getCacheMaxAge in Devel 4.x

Same name and namespace in other branches
  1. 8.3 src/Plugin/Menu/RouteDetailMenuLink.php \Drupal\devel\Plugin\Menu\RouteDetailMenuLink::getCacheMaxAge()
  2. 8 src/Plugin/Menu/RouteDetailMenuLink.php \Drupal\devel\Plugin\Menu\RouteDetailMenuLink::getCacheMaxAge()
  3. 8.2 src/Plugin/Menu/RouteDetailMenuLink.php \Drupal\devel\Plugin\Menu\RouteDetailMenuLink::getCacheMaxAge()

The maximum age for which this object may be cached.

Return value

int The maximum time in seconds that this object may be cached.

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() {
  return 0;
}