Patched to Drupal 8.4.8 level. See https://www.drupal.org/sa-core-2018-004 and patch...
[yaffs-website] / web / core / lib / Drupal / Core / Asset / AssetDumperInterface.php
1 <?php
2
3 namespace Drupal\Core\Asset;
4
5 /**
6  * Interface defining a service that dumps an (optimized) asset.
7  */
8 interface AssetDumperInterface {
9
10   /**
11    * Dumps an (optimized) asset to persistent storage.
12    *
13    * @param string $data
14    *   An (optimized) asset's contents.
15    * @param string $file_extension
16    *   The file extension of this asset.
17    *
18    * @return string
19    *   An URI to access the dumped asset.
20    */
21   public function dump($data, $file_extension);
22
23 }