public function TestCacheableDependency::getCacheMaxAge in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/Render/TestCacheableDependency.php \Drupal\Tests\Core\Render\TestCacheableDependency::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/
tests/ Drupal/ Tests/ Core/ Render/ TestCacheableDependency.php, line 40 - Contains \Drupal\Tests\Core\Render\TestCacheableDependency.
Class
- TestCacheableDependency
- Cacheable dependency object for use in tests.
Namespace
Drupal\Tests\Core\RenderCode
public function getCacheMaxAge() {
return $this->maxAge;
}