Set the folder path to save the data to.

Parameters

string $file_extension: The extension of the file.

1 call to AssetDumper::preparePath()
AssetDumper::dump in src/Asset/AssetDumper.php
The file name for the CSS or JS cache file is generated from the hash of the aggregated contents of the files in $data. This forces proxies and browsers to download new CSS when the CSS changes.

File

src/Asset/AssetDumper.php, line 70

Class

AssetDumper
Dumps a CSS or JavaScript asset.

Namespace

Drupal\advagg\Asset

Code

public function preparePath($file_extension) {
    $this->extension = $file_extension;
    $this->path = 'public://' . $this->extension . '/';
    // Allow other modules to alter the file path.
    // Call hook_advagg_asset_path_alter().
    $this->moduleHandler
        ->alter('advagg_asset_path', $this->path, $this->extension);
    file_prepare_directory($this->path, FILE_CREATE_DIRECTORY);
    return $this->path;
}