/** * {@inheritdoc} */ public function getCacheMaxAge() { $max_age = parent::getCacheMaxAge(); foreach ($this->getAllEntities() as $entity) { $max_age = Cache::mergeMaxAges($max_age, $entity->getCacheMaxAge()); } return $max_age; }