AssetDumperInterface.php

Same filename and directory in other branches
  1. 9 core/lib/Drupal/Core/Asset/AssetDumperInterface.php
  2. 8.9.x core/lib/Drupal/Core/Asset/AssetDumperInterface.php
  3. 10 core/lib/Drupal/Core/Asset/AssetDumperInterface.php

Namespace

Drupal\Core\Asset

File

core/lib/Drupal/Core/Asset/AssetDumperInterface.php

View source
<?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);

}

Interfaces

Title Deprecated Summary
AssetDumperInterface Interface defining a service that dumps an (optimized) asset.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.