public function RestMenuItemsCacheableDependency::getCacheMaxAge in Rest menu items 3.0.x
Same name and namespace in other branches
- 8.2 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
Namespace
Drupal\rest_menu_items\Plugin\rest\resourceCode
public function getCacheMaxAge() {
return Cache::PERMANENT;
}