You are here

public function SwaggerUiLibraryDiscovery::getCacheMaxAge in Swagger UI Field Formatter 8.3

Same name in this branch
  1. 8.3 src/Service/SwaggerUiLibraryDiscovery.php \Drupal\swagger_ui_formatter\Service\SwaggerUiLibraryDiscovery::getCacheMaxAge()
  2. 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\Service

Code

public function getCacheMaxAge() : int {
  return $this->decorated
    ->getCacheMaxAge();
}