function AssetDumperInterface::dump
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Asset/AssetDumperInterface.php \Drupal\Core\Asset\AssetDumperInterface::dump()
- 10 core/lib/Drupal/Core/Asset/AssetDumperInterface.php \Drupal\Core\Asset\AssetDumperInterface::dump()
- 11.x core/lib/Drupal/Core/Asset/AssetDumperInterface.php \Drupal\Core\Asset\AssetDumperInterface::dump()
Dumps an (optimized) asset to persistent storage.
Parameters
string $data: An (optimized) asset's contents.
string $file_extension: The file extension of this asset.
Return value
string A URI to access the dumped asset.
1 method overrides AssetDumperInterface::dump()
- AssetDumper::dump in core/
lib/ Drupal/ Core/ 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
-
core/
lib/ Drupal/ Core/ Asset/ AssetDumperInterface.php, line 21
Class
- AssetDumperInterface
- Interface defining a service that dumps an (optimized) asset.
Namespace
Drupal\Core\AssetCode
public function dump($data, $file_extension);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.