Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Asset/AssetDumperInterface.php \Drupal\Core\Asset\AssetDumperInterface
  2. 9 core/lib/Drupal/Core/Asset/AssetDumperInterface.php \Drupal\Core\Asset\AssetDumperInterface

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

Hierarchy

Expanded class hierarchy of AssetDumperInterface

All classes that implement AssetDumperInterface

1 file declares its use of AssetDumperInterface
CssCollectionOptimizerUnitTest.php in core/tests/Drupal/Tests/Core/Asset/CssCollectionOptimizerUnitTest.php

File

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

Namespace

Drupal\Core\Asset
View source
interface AssetDumperInterface {

  /**
   * Dumps an (optimized) asset to persistent storage.
   *
   * @param string $data
   *   An (optimized) asset's contents.
   * @param string $file_extension
   *   The file extension of this asset.
   *
   * @return string
   *   A URI to access the dumped asset.
   */
  public function dump($data, $file_extension);

}

Members

Namesort descending Modifiers Type Description Overrides
AssetDumperInterface::dump public function Dumps an (optimized) asset to persistent storage. 1