public function AssetCache::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/AssetCache.php, line 85

Class

AssetCache
Caches an asset to avoid the cost of loading and dumping.

Namespace

Assetic\Asset

Code

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