public function AssetWriter::writeAsset

1 call to AssetWriter::writeAsset()
AssetWriter::writeManagerAssets in drupal/core/vendor/kriswallsmith/assetic/src/Assetic/AssetWriter.php

File

drupal/core/vendor/kriswallsmith/assetic/src/Assetic/AssetWriter.php, line 55

Class

AssetWriter
Writes assets to the filesystem.

Namespace

Assetic

Code

public function writeAsset(AssetInterface $asset) {
  foreach ($this
    ->getCombinations($asset
    ->getVars()) as $combination) {
    $asset
      ->setValues($combination);
    static::write($this->dir . '/' . PathUtils::resolvePath($asset
      ->getTargetPath(), $asset
      ->getVars(), $asset
      ->getValues()), $asset
      ->dump());
  }
}