You are here

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

Helper function to fake an unsupported library version.

Parameters

bool $state: Indicates whether the unsupported library version is faked or not.

See also

libraryVersion()

File

tests/modules/swagger_ui_formatter_test/src/Service/SwaggerUiLibraryDiscovery.php, line 118

Class

SwaggerUiLibraryDiscovery
Decorator service for testing.

Namespace

Drupal\swagger_ui_formatter_test\Service

Code

public function fakeUnsupportedLibrary(bool $state) : void {
  $this->state
    ->set(self::STATE_FAKE_UNSUPPORTED_LIBRARY, $state);
  $this
    ->flushCaches();
}