public static function SwaggerUiLibraryDiscoveryException::becauseLibraryDirectoryIsInvalid in Swagger UI Field Formatter 8.3
Thrown when the Swagger UI library directory path is invalid.
Parameters
string $library_dir: The path of the Swagger UI library directory.
Return value
self The exception.
2 calls to SwaggerUiLibraryDiscoveryException::becauseLibraryDirectoryIsInvalid()
- SwaggerUiLibraryDiscovery::libraryDirectory in tests/
modules/ swagger_ui_formatter_test/ src/ Service/ SwaggerUiLibraryDiscovery.php - Gets the Swagger UI library directory.
- SwaggerUiLibraryDiscovery::validateLibraryDirectory in src/
Service/ SwaggerUiLibraryDiscovery.php - Validates a given Swagger UI library directory.
File
- src/
Exception/ SwaggerUiLibraryDiscoveryException.php, line 42
Class
- SwaggerUiLibraryDiscoveryException
- Base exception for Swagger UI library discovery.
Namespace
Drupal\swagger_ui_formatter\ExceptionCode
public static function becauseLibraryDirectoryIsInvalid(string $library_dir) : self {
return new static(sprintf('The provided "%s" Swagger UI library directory is invalid.', $library_dir), self::CODE_INVALID_DIR);
}