public function AssetCollection::setValues

Sets the values for the asset's variables.

Parameters

array $values:

Overrides AssetInterface::setValues

1 call to AssetCollection::setValues()
GlobAsset::setValues in drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/GlobAsset.php
Sets the values for the asset's variables.
1 method overrides AssetCollection::setValues()
GlobAsset::setValues in drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/GlobAsset.php
Sets the values for the asset's variables.

File

drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Asset/AssetCollection.php, line 220

Class

AssetCollection
A collection of assets.

Namespace

Assetic\Asset

Code

public function setValues(array $values) {
  $this->values = $values;
  foreach ($this as $asset) {
    $asset
      ->setValues(array_intersect_key($values, array_flip($asset
      ->getVars())));
  }
}