You are here

public function RestMenuItemsCachableDepenency::getCacheMaxAge in Rest menu items 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

src/Plugin/rest/resource/RestMenuItemsCachableDepenency.php, line 62

Class

RestMenuItemsCachableDepenency

Namespace

Drupal\rest_menu_items\Plugin\rest\resource

Code

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