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

1 call to AssetCollection::dump()
GlobAsset::dump in drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/GlobAsset.php
Applies dump filters and returns the asset as a string.
1 method overrides AssetCollection::dump()
GlobAsset::dump in drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/GlobAsset.php
Applies dump filters and returns the asset as a string.

File

drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/AssetCollection.php, line 145

Class

AssetCollection
A collection of assets.

Namespace

Assetic\Asset

Code

public function dump(FilterInterface $additionalFilter = null) {

  // loop through leaves and dump each asset
  $parts = array();
  foreach ($this as $asset) {
    $parts[] = $asset
      ->dump($additionalFilter);
  }
  return implode("\n", $parts);
}