public function ArrayObject::getCacheMaxAge in Express 8
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
- themes/
contrib/ bootstrap/ src/ Utility/ ArrayObject.php, line 235 - Contains \Drupal\bootstrap\Utility\ArrayObject.
Class
- ArrayObject
- Custom ArrayObject implementation.
Namespace
Drupal\bootstrap\UtilityCode
public function getCacheMaxAge() {
return BubbleableMetadata::createFromRenderArray($this->array)
->getCacheMaxAge();
}