function AssetDumperInterface::dump

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Asset/AssetDumperInterface.php \Drupal\Core\Asset\AssetDumperInterface::dump()
  2. 10 core/lib/Drupal/Core/Asset/AssetDumperInterface.php \Drupal\Core\Asset\AssetDumperInterface::dump()
  3. 8.9.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.

File

core/lib/Drupal/Core/Asset/AssetDumperInterface.php, line 21

Class

AssetDumperInterface
Interface defining a service that dumps an (optimized) asset.

Namespace

Drupal\Core\Asset

Code

public function dump($data, $file_extension);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.