public function RouteDetailMenuLink::getCacheMaxAge in Devel 8.2
Same name and namespace in other branches
- 8.3 src/Plugin/Menu/RouteDetailMenuLink.php \Drupal\devel\Plugin\Menu\RouteDetailMenuLink::getCacheMaxAge()
- 8 src/Plugin/Menu/RouteDetailMenuLink.php \Drupal\devel\Plugin\Menu\RouteDetailMenuLink::getCacheMaxAge()
- 4.x 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\MenuCode
public function getCacheMaxAge() {
return 0;
}