VendorStreamWrapperServiceInterface.php in Vendor Stream Wrapper 8
Namespace
Drupal\vendor_stream_wrapper\ServiceFile
src/Service/VendorStreamWrapperServiceInterface.phpView source
<?php
namespace Drupal\vendor_stream_wrapper\Service;
/**
* Interfaces for the Vendor Stream Wrapper module services.
*/
interface VendorStreamWrapperServiceInterface {
/**
* Creates a public facing URL from URIs with the vendor:// schema.
*
* @param string $uri
* The vendor:// prefixed URI to be convereted to a public facing URL.
*
* @return 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.
*/
public function creatUrlFromUri($uri);
}
Interfaces
Name | Description |
---|---|
VendorStreamWrapperServiceInterface | Interfaces for the Vendor Stream Wrapper module services. |