You are here

interface ResourceStreamWrapperInterface in D7 Media 6

Definition for a Resource stream wrapper in Drupal. Extends the StreamWrapperInterface with methods expected by the Drupal Resource Classes.

Hierarchy

Expanded class hierarchy of ResourceStreamWrapperInterface

All classes that implement ResourceStreamWrapperInterface

File

resource/ResourceStreamWrapper.inc, line 36

View source
interface ResourceStreamWrapperInterface extends StreamWrapperInterface {

  /**
   * Return the html accessible URL for a resource.
   * @param $url
   *   Stream wrapper resource url.
   * @return string
   */
  function htmlUrl($url);

  /**
   * Return the mime type of a resource.
   * @param $url
   *   Stream wrapper resource url.
   * @return string
   */
  function mime($url);

  /**
   * Return an absolute stream resource URL.
   * @param $url
   *   Stream wrapper resource url.
   * @return string
   */
  function interpolateUrl($url);

}

Members