public function AssetInterface::ensureFilter

Ensures the current asset includes the supplied filter.

Parameters

FilterInterface $filter A filter:

4 methods override AssetInterface::ensureFilter()
AssetCache::ensureFilter in drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/AssetCache.php
Ensures the current asset includes the supplied filter.
AssetCollection::ensureFilter in drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/AssetCollection.php
Ensures the current asset includes the supplied filter.
AssetReference::ensureFilter in drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/AssetReference.php
Ensures the current asset includes the supplied filter.
BaseAsset::ensureFilter in drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/BaseAsset.php
Ensures the current asset includes the supplied filter.

File

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

Class

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

Namespace

Assetic\Asset

Code

public function ensureFilter(FilterInterface $filter);