public function StringAsset::__construct

Constructor.

Parameters

string $content The content of the asset:

array $filters Filters for the asset:

string $sourceRoot The source asset root directory:

string $sourcePath The source asset path:

Overrides BaseAsset::__construct

File

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

Class

StringAsset
Represents a string asset.

Namespace

Assetic\Asset

Code

public function __construct($content, $filters = array(), $sourceRoot = null, $sourcePath = null) {
  $this->content = $content;
  parent::__construct($filters, $sourceRoot, $sourcePath);
}