You are here

public function EntityBase::getCacheMaxAge in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::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 CacheableDependencyTrait::getCacheMaxAge

File

core/lib/Drupal/Core/Entity/EntityBase.php, line 477

Class

EntityBase
Defines a base entity class.

Namespace

Drupal\Core\Entity

Code

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