You are here

public function CacheableTestDomainObject::getCacheMaxAge in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/system/tests/modules/early_rendering_controller_test/src/CacheableTestDomainObject.php \Drupal\early_rendering_controller_test\CacheableTestDomainObject::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

File

core/modules/system/tests/modules/early_rendering_controller_test/src/CacheableTestDomainObject.php, line 31
Contains \Drupal\early_rendering_controller_test\CacheableTestDomainObject.

Class

CacheableTestDomainObject

Namespace

Drupal\early_rendering_controller_test

Code

public function getCacheMaxAge() {
  return 0;
}