You are here

public function RestMenuItemsCacheableDependency::getCacheMaxAge in Rest menu items 8.2

Same name and namespace in other branches
  1. 3.0.x src/Plugin/rest/resource/RestMenuItemsCacheableDependency.php \Drupal\rest_menu_items\Plugin\rest\resource\RestMenuItemsCacheableDependency::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/Plugin/rest/resource/RestMenuItemsCacheableDependency.php, line 57

Class

RestMenuItemsCacheableDependency

Namespace

Drupal\rest_menu_items\Plugin\rest\resource

Code

public function getCacheMaxAge() {
  return Cache::PERMANENT;
}