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