private function AssetReference::flushFilters

3 calls to AssetReference::flushFilters()
AssetReference::dump in drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/AssetReference.php
Applies dump filters and returns the asset as a string.
AssetReference::getFilters in drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/AssetReference.php
Returns an array of filters currently applied.
AssetReference::load in drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/AssetReference.php
Loads the asset into memory and applies load filters.

File

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

Class

AssetReference
A reference to an asset in the asset manager.

Namespace

Assetic\Asset

Code

private function flushFilters() {
  $asset = $this->am
    ->get($this->name);
  while ($filter = array_shift($this->filters)) {
    $asset
      ->ensureFilter($filter);
  }
}