3 namespace Drupal\libraries\StreamWrapper;
5 use Drupal\Core\StreamWrapper\LocalStream;
8 * Provides a stream wrapper for PHP file libraries.
10 * Can be used with the 'php-file://' scheme, for example
11 * 'php-file-library://guzzle/src/functions_include.php'.
13 class PhpFileLibrariesStream extends LocalStream {
15 use LocalHiddenStreamTrait;
16 use PrivateStreamTrait;
21 public function getName() {
22 return t('PHP library files');
28 public function getDescription() {
29 return t('Provides access to PHP library files.');
35 public function getDirectoryPath() {
36 // @todo Provide support for site-specific directories, etc.
37 return 'sites/all/libraries';