You are here

interface VendorStreamWrapperServiceInterface in Vendor Stream Wrapper 8

Interfaces for the Vendor Stream Wrapper module services.

Hierarchy

Expanded class hierarchy of VendorStreamWrapperServiceInterface

All classes that implement VendorStreamWrapperServiceInterface

File

src/Service/VendorStreamWrapperServiceInterface.php, line 8

Namespace

Drupal\vendor_stream_wrapper\Service
View source
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);

}

Members

Namesort descending Modifiers Type Description Overrides
VendorStreamWrapperServiceInterface::creatUrlFromUri public function Creates a public facing URL from URIs with the vendor:// schema. 1