1<?php 2 3namespace Drupal\Core\Asset; 4 5/** 6 * Interface defining a service that dumps an (optimized) asset. 7 */ 8interface 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 * A URI to access the dumped asset. 20 */ 21 public function dump($data, $file_extension); 22 23} 24