public function Entity::getCacheMaxAge in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Entity/Entity.php \Drupal\Core\Entity\Entity::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 RefinableCacheableDependencyTrait::getCacheMaxAge
File
- core/
lib/ Drupal/ Core/ Entity/ Entity.php, line 494 - Contains \Drupal\Core\Entity\Entity.
Class
- Entity
- Defines a base entity class.
Namespace
Drupal\Core\EntityCode
public function getCacheMaxAge() {
return $this->cacheMaxAge;
}