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