Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. AssetDumperInterface.php

interface AssetDumperInterface

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

Hierarchy

  • interface \Drupal\Core\Asset\AssetDumperInterface

Expanded class hierarchy of AssetDumperInterface

All classes that implement AssetDumperInterface

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

Title Sort descending Modifiers Object type Summary Overrides
AssetDumperInterface::dump public function Dumps an (optimized) asset to persistent storage. 1
RSS feed
Powered by Drupal