public function CacheableInterface::getCacheMaxAge in Render cache 7.2
The maximum age for which this object may be cached.
Return value
int The maximum time in seconds that this object may be cached.
1 method overrides CacheableInterface::getCacheMaxAge()
- RenderStack::getCacheMaxAge in src/
Cache/ RenderStack.php - The maximum age for which this object may be cached.
File
- lib/
Drupal/ Core/ Cache/ CacheableInterface.php, line 44 - Contains \Drupal\Core\CacheableInterface
Class
- CacheableInterface
- Defines an interface for objects which are potentially cacheable.
Namespace
Drupal\Core\CacheCode
public function getCacheMaxAge();