Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. MenuLinkBase.php

function MenuLinkBase::getCacheMaxAge

Overrides CacheableDependencyInterface::getCacheMaxAge

1 method overrides MenuLinkBase::getCacheMaxAge()
InaccessibleMenuLink::getCacheMaxAge in core/lib/Drupal/Core/Menu/InaccessibleMenuLink.php
The maximum age for which this object may be cached.

File

core/lib/Drupal/Core/Menu/MenuLinkBase.php, line 215

Class

MenuLinkBase
Defines a base menu link class.

Namespace

Drupal\Core\Menu

Code

public function getCacheMaxAge() {
    return Cache::PERMANENT;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal