summaryrefslogtreecommitdiffstatshomepage
path: root/core/lib/Drupal/Core/Asset/AssetDumperInterface.php
blob: 24be86ca342f395beb3fcde7ef862b8da361c83a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php

namespace Drupal\Core\Asset;

/**
 * Interface defining a service that dumps an (optimized) asset.
 */
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);

}