public function AssetReference::dump

Applies dump filters and returns the asset as a string.

You may provide an additional filter to apply during dump.

Dumping an asset should not change its state.

If the current asset has not been loaded yet, it should be automatically loaded at this time.

Parameters

FilterInterface $additionalFilter An additional filter:

Return value

string The filtered content of the current asset

Overrides AssetInterface::dump

File

drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/AssetReference.php, line 59

Class

AssetReference
A reference to an asset in the asset manager.

Namespace

Assetic\Asset

Code

public function dump(FilterInterface $additionalFilter = null) {
  $this
    ->flushFilters();
  return $this
    ->callAsset(__FUNCTION__, array(
    $additionalFilter,
  ));
}