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

Breadcrumb

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

function LocalTaskDefault::getCacheMaxAge

Overrides CacheableDependencyInterface::getCacheMaxAge

File

core/lib/Drupal/Core/Menu/LocalTaskDefault.php, line 168

Class

LocalTaskDefault
Default object used for LocalTaskPlugins.

Namespace

Drupal\Core\Menu

Code

public function getCacheMaxAge() {
    if (!isset($this->pluginDefinition['cache_max_age'])) {
        return Cache::PERMANENT;
    }
    return $this->pluginDefinition['cache_max_age'];
}

API Navigation

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