function DestinationMenuLink::getCacheMaxAge

Same name in other branches
  1. 8.x-1.x src/Plugin/Menu/DestinationMenuLink.php \Drupal\devel\Plugin\Menu\DestinationMenuLink::getCacheMaxAge()
  2. 5.x src/Plugin/Menu/DestinationMenuLink.php \Drupal\devel\Plugin\Menu\DestinationMenuLink::getCacheMaxAge()

@todo Make cacheable once https://www.drupal.org/node/2582797 lands.

Overrides MenuLinkBase::getCacheMaxAge

File

src/Plugin/Menu/DestinationMenuLink.php, line 28

Class

DestinationMenuLink
Modifies the menu link to add destination.

Namespace

Drupal\devel\Plugin\Menu

Code

public function getCacheMaxAge() {
    return 0;
}