You are here

public function RefinableCacheableDependencyTrait::getCacheMaxAge in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php \Drupal\Core\Cache\RefinableCacheableDependencyTrait::getCacheMaxAge()
4 methods override RefinableCacheableDependencyTrait::getCacheMaxAge()
AccessResult::getCacheMaxAge in core/lib/Drupal/Core/Access/AccessResult.php
The maximum age for which this object may be cached.
CacheableMetadata::getCacheMaxAge in core/lib/Drupal/Core/Cache/CacheableMetadata.php
The maximum age for which this object may be cached.
ConfigBase::getCacheMaxAge in core/lib/Drupal/Core/Config/ConfigBase.php
The maximum age for which this object may be cached.
Entity::getCacheMaxAge in core/lib/Drupal/Core/Entity/Entity.php
The maximum age for which this object may be cached.

File

core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php, line 53
Contains \Drupal\Core\Cache\RefinableCacheableDependencyTrait.

Class

RefinableCacheableDependencyTrait
Trait for \Drupal\Core\Cache\RefinableCacheableDependencyInterface.

Namespace

Drupal\Core\Cache

Code

public function getCacheMaxAge() {
  return $this->cacheMaxAge;
}