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

4 methods override AssetInterface::dump()
AssetCache::dump in drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/AssetCache.php
Applies dump filters and returns the asset as a string.
AssetCollection::dump in drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/AssetCollection.php
Applies dump filters and returns the asset as a string.
AssetReference::dump in drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/AssetReference.php
Applies dump filters and returns the asset as a string.
BaseAsset::dump in drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/BaseAsset.php
Applies dump filters and returns the asset as a string.

File

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

Class

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

Namespace

Assetic\Asset

Code

public function dump(FilterInterface $additionalFilter = null);