public function BaseAsset::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

File

drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/BaseAsset.php, line 123

Class

BaseAsset
A base abstract asset.

Namespace

Assetic\Asset

Code

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