-
Tobias Zimmermann authoredTobias Zimmermann authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
PhpLibraryFilesStream.php 933 B
<?php
/**
* @file
* Contains \Drupal\libraries\StreamWrapper\PhpFileLibraryStream.
*/
namespace Drupal\libraries\StreamWrapper;
use Drupal\Core\StreamWrapper\LocalStream;
use Drupal\Core\StreamWrapper\StreamWrapperInterface;
/**
* Provides a stream wrapper for PHP file libraries.
*
* Can be used with the 'php-file-library://' scheme, for example
* 'php-file-library://guzzle/src/functions_include.php'.
*/
class PhpLibraryFilesStream extends LocalStream {
use LocalHiddenStreamTrait;
use PrivateStreamTrait;
/**
* {@inheritdoc}
*/
public function getName() {
return t('PHP library files');
}
/**
* {@inheritdoc}
*/
public function getDescription() {
return t('Provides access to PHP library files.');
}
/**
* {@inheritdoc}
*/
public function getDirectoryPath() {
// @todo Provide support for site-specific directories, etc.
return 'sites/all/libraries';
}
}