public function SwaggerUiLibraryDiscovery::fakeMissingLibrary in Swagger UI Field Formatter 8.3
Helper function to fake a missing library path.
Parameters
bool $state: Indicates whether the missing library path is faked or not.
See also
libraryDirectory()
File
- tests/
modules/ swagger_ui_formatter_test/ src/ Service/ SwaggerUiLibraryDiscovery.php, line 105
Class
- SwaggerUiLibraryDiscovery
- Decorator service for testing.
Namespace
Drupal\swagger_ui_formatter_test\ServiceCode
public function fakeMissingLibrary(bool $state) : void {
$this->state
->set(self::STATE_FAKE_MISSING_LIBRARY, $state);
$this
->flushCaches();
}