public function BaseAsset::__construct

Constructor.

Parameters

array $filters Filters for the asset:

string $sourceRoot The root directory:

string $sourcePath The asset path:

array $vars:

3 calls to BaseAsset::__construct()
FileAsset::__construct in drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/FileAsset.php
Constructor.
HttpAsset::__construct in drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/HttpAsset.php
Constructor.
StringAsset::__construct in drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/StringAsset.php
Constructor.
3 methods override BaseAsset::__construct()
FileAsset::__construct in drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/FileAsset.php
Constructor.
HttpAsset::__construct in drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/HttpAsset.php
Constructor.
StringAsset::__construct in drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/StringAsset.php
Constructor.

File

drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/BaseAsset.php, line 44

Class

BaseAsset
A base abstract asset.

Namespace

Assetic\Asset

Code

public function __construct($filters = array(), $sourceRoot = null, $sourcePath = null, array $vars = array()) {
  $this->filters = new FilterCollection($filters);
  $this->sourceRoot = $sourceRoot;
  $this->sourcePath = $sourcePath;
  $this->vars = $vars;
  $this->values = array();
  $this->loaded = false;
}