You are here

public function VendorStreamWrapperServiceInterface::creatUrlFromUri in Vendor Stream Wrapper 8

Creates a public facing URL from URIs with the vendor:// schema.

Parameters

string $uri: The vendor:// prefixed URI to be convereted to a public facing URL.

Return value

string

  • If the $uri is prefixed with vendor://, and the path is valid, a public facing URL will be returned.
  • If the $uri is prefixed with vendor://, and the path is invalid, NULL is returned.
  • If $uri is not prefixed with vendor://, the passed $uri is returned unaltered.
1 method overrides VendorStreamWrapperServiceInterface::creatUrlFromUri()
VendorStreamWrapperService::creatUrlFromUri in src/Service/VendorStreamWrapperService.php
Creates a public facing URL from URIs with the vendor:// schema.

File

src/Service/VendorStreamWrapperServiceInterface.php, line 24

Class

VendorStreamWrapperServiceInterface
Interfaces for the Vendor Stream Wrapper module services.

Namespace

Drupal\vendor_stream_wrapper\Service

Code

public function creatUrlFromUri($uri);