8.5.x CacheableDependencyInterface.php CacheableDependencyInterface::getCacheMaxAge()
8.0.x CacheableDependencyInterface.php CacheableDependencyInterface::getCacheMaxAge()
8.1.x CacheableDependencyInterface.php CacheableDependencyInterface::getCacheMaxAge()
8.2.x CacheableDependencyInterface.php CacheableDependencyInterface::getCacheMaxAge()
8.3.x CacheableDependencyInterface.php CacheableDependencyInterface::getCacheMaxAge()
8.4.x CacheableDependencyInterface.php CacheableDependencyInterface::getCacheMaxAge()
8.6.x CacheableDependencyInterface.php 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.

Overrides CacheableDependencyInterface::getCacheMaxAge

32 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/system/src/Plugin/views/field/BulkForm.php
The maximum age for which this object may be cached.
CacheableDependencyInterface::getCacheMaxAge in core/lib/Drupal/Core/Cache/CacheableDependencyInterface.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.
ContextAwarePluginBase::getCacheMaxAge in core/lib/Drupal/Core/Plugin/ContextAwarePluginBase.php
The maximum age for which this object may be cached.

... See full list

File

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

Class

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

Namespace

Drupal\Core\Cache

Code

public function getCacheMaxAge();