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

Breadcrumb

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

function CacheableDependencyInterface::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. An object may be cached permanently by returning \Drupal\Core\Cache\Cache::PERMANENT.

30 methods override CacheableDependencyInterface::getCacheMaxAge()
ArgumentPluginBase::getCacheMaxAge in core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php
The maximum age for which this object may be cached.
BulkForm::getCacheMaxAge in core/modules/views/src/Plugin/views/field/BulkForm.php
The maximum age for which this object may be cached.
Context::getCacheMaxAge in core/lib/Drupal/Core/Plugin/Context/Context.php
The maximum age for which this object may be cached.
CurrentUser::getCacheMaxAge in core/modules/user/src/Plugin/views/argument_default/CurrentUser.php
The maximum age for which this object may be cached.
DefaultPluginManager::getCacheMaxAge in core/lib/Drupal/Core/Plugin/DefaultPluginManager.php
The maximum age for which this object may be cached.

... See full list

File

core/lib/Drupal/Core/Cache/CacheableDependencyInterface.php, line 52

Class

CacheableDependencyInterface
Defines an interface for objects which may be used by other cached objects.

Namespace

Drupal\Core\Cache

Code

public function getCacheMaxAge();

API Navigation

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