You are here

interface VendorStreamWrapperInterface in Vendor Stream Wrapper 8

Inteface for VenderStreamWrapper (vendor://).

Hierarchy

Expanded class hierarchy of VendorStreamWrapperInterface

All classes that implement VendorStreamWrapperInterface

File

src/StreamWrapper/VendorStreamWrapperInterface.php, line 8

Namespace

Drupal\vendor_stream_wrapper\StreamWrapper
View source
interface VendorStreamWrapperInterface {

  /**
   * Returns the path to the site vendor directory.
   *
   * This is first searched for one level above the webroot, then the webroot,
   * and if not found in either of those locations, a custom path can be set in
   * settings.php.
   */
  public function getDirectoryPath();

  /**
   * Returns the base path for vendor://.
   *
   * @return string
   *   The base path for vendor://.
   */
  public static function basePath();

}

Members

Namesort descending Modifiers Type Description Overrides
VendorStreamWrapperInterface::basePath public static function Returns the base path for vendor://. 1
VendorStreamWrapperInterface::getDirectoryPath public function Returns the path to the site vendor directory.