public function AssetCollection::getSourceRoot

Returns an absolute path or URL to the source asset's root directory.

This value should be an absolute path to a directory in the filesystem, an absolute URL with no path, or null.

For example:

Return value

string|null The asset's root

Overrides AssetInterface::getSourceRoot

1 call to AssetCollection::getSourceRoot()
GlobAsset::initialize in drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/GlobAsset.php
Initializes the collection based on the glob(s) passed in.

File

drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/AssetCollection.php, line 166

Class

AssetCollection
A collection of assets.

Namespace

Assetic\Asset

Code

public function getSourceRoot() {
  return $this->sourceRoot;
}