public function AssetCache::ensureFilter

Ensures the current asset includes the supplied filter.

Parameters

FilterInterface $filter A filter:

Overrides AssetInterface::ensureFilter

File

drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/AssetCache.php, line 34

Class

AssetCache
Caches an asset to avoid the cost of loading and dumping.

Namespace

Assetic\Asset

Code

public function ensureFilter(FilterInterface $filter) {
  $this->asset
    ->ensureFilter($filter);
}