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
Namespace
Drupal\rest_menu_items\Plugin\rest\resourceCode
public function getCacheMaxAge() {
return Cache::PERMANENT;
}