public function AssetInterface::setContent

Sets the content of the current asset.

Filters can use this method to change the content of the asset.

Parameters

string $content The asset content:

4 methods override AssetInterface::setContent()
AssetCache::setContent in drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/AssetCache.php
Sets the content of the current asset.
AssetCollection::setContent in drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/AssetCollection.php
Sets the content of the current asset.
AssetReference::setContent in drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/AssetReference.php
Sets the content of the current asset.
BaseAsset::setContent in drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/BaseAsset.php
Sets the content of the current asset.

File

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

Class

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

Namespace

Assetic\Asset

Code

public function setContent($content);