You are here

public function SwaggerUiLibraryDiscoveryInterface::libraryDirectory in Swagger UI Field Formatter 8.3

Gets the Swagger UI library directory.

This is a relative path from the DRUPAL_ROOT. No leading slash should be included in the returned path.

Return value

string The path of the Swagger UI library directory relative to DRUPAL_ROOT.

Throws

\Drupal\swagger_ui_formatter\Exception\SwaggerUiLibraryDiscoveryExceptionInterface

2 methods override SwaggerUiLibraryDiscoveryInterface::libraryDirectory()
SwaggerUiLibraryDiscovery::libraryDirectory in src/Service/SwaggerUiLibraryDiscovery.php
Gets the Swagger UI library directory.
SwaggerUiLibraryDiscovery::libraryDirectory in tests/modules/swagger_ui_formatter_test/src/Service/SwaggerUiLibraryDiscovery.php
Gets the Swagger UI library directory.

File

src/Service/SwaggerUiLibraryDiscoveryInterface.php, line 23

Class

SwaggerUiLibraryDiscoveryInterface
Generic definition of a Swagger UI library discovery service.

Namespace

Drupal\swagger_ui_formatter\Service

Code

public function libraryDirectory() : string;