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

4 methods override AssetInterface::getSourceRoot()
AssetCache::getSourceRoot in drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/AssetCache.php
Returns an absolute path or URL to the source asset's root directory.
AssetCollection::getSourceRoot in drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/AssetCollection.php
Returns an absolute path or URL to the source asset's root directory.
AssetReference::getSourceRoot in drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/AssetReference.php
Returns an absolute path or URL to the source asset's root directory.
BaseAsset::getSourceRoot in drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/BaseAsset.php
Returns an absolute path or URL to the source asset's root directory.

File

drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/AssetInterface.php, line 97

Class

AssetInterface
An asset has a mutable URL and content and can be loaded and dumped.

Namespace

Assetic\Asset

Code

public function getSourceRoot();