public function SwaggerUiLibraryDiscovery::getCacheMaxAge in Swagger UI Field Formatter 8.3
Same name in this branch
- 8.3 src/Service/SwaggerUiLibraryDiscovery.php \Drupal\swagger_ui_formatter\Service\SwaggerUiLibraryDiscovery::getCacheMaxAge()
- 8.3 tests/modules/swagger_ui_formatter_test/src/Service/SwaggerUiLibraryDiscovery.php \Drupal\swagger_ui_formatter_test\Service\SwaggerUiLibraryDiscovery::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
1 call to SwaggerUiLibraryDiscovery::getCacheMaxAge()
- SwaggerUiLibraryDiscovery::libraryDirectory in src/
Service/ SwaggerUiLibraryDiscovery.php - Gets the Swagger UI library directory.
File
- src/
Service/ SwaggerUiLibraryDiscovery.php, line 199
Class
- SwaggerUiLibraryDiscovery
- Default Swagger UI library discovery service implementation.
Namespace
Drupal\swagger_ui_formatter\ServiceCode
public function getCacheMaxAge() : int {
return CacheBackendInterface::CACHE_PERMANENT;
}