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

File

drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/GlobAsset.php, line 61

Class

GlobAsset
A collection of assets loaded by glob.

Namespace

Assetic\Asset

Code

public function dump(FilterInterface $additionalFilter = null) {
  if (!$this->initialized) {
    $this
      ->initialize();
  }
  return parent::dump($additionalFilter);
}