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
File
- tests/
modules/ swagger_ui_formatter_test/ src/ Service/ SwaggerUiLibraryDiscovery.php, line 140
Class
- SwaggerUiLibraryDiscovery
- Decorator service for testing.
Namespace
Drupal\swagger_ui_formatter_test\ServiceCode
public function getCacheMaxAge() : int {
return $this->decorated
->getCacheMaxAge();
}