You are here

public function PathContext::getCacheMaxAge in Acquia Lift Connector 8.3

Same name and namespace in other branches
  1. 8.4 src/Service/Context/PathContext.php \Drupal\acquia_lift\Service\Context\PathContext::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

src/Service/Context/PathContext.php, line 192

Class

PathContext

Namespace

Drupal\acquia_lift\Service\Context

Code

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