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

Class

AssetReference
A reference to an asset in the asset manager.

Namespace

Assetic\Asset

Code

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