AssetDumperUriInterface.php

Same filename in other branches
  1. 11.x core/lib/Drupal/Core/Asset/AssetDumperUriInterface.php

Namespace

Drupal\Core\Asset

File

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

View source
<?php

namespace Drupal\Core\Asset;


/**
 * Interface defining a service that dumps an asset to a specified location.
 */
interface AssetDumperUriInterface extends AssetDumperInterface {
    
    /**
     * Dumps an (optimized) asset to persistent storage.
     *
     * @param string $data
     *   The asset's contents.
     * @param string $file_extension
     *   The file extension of this asset.
     * @param string $uri
     *   The URI to dump to.
     *
     * @return string
     *   An URI to access the dumped asset.
     */
    public function dumpToUri(string $data, string $file_extension, string $uri) : string;

}

Interfaces

Title Deprecated Summary
AssetDumperUriInterface Interface defining a service that dumps an asset to a specified location.

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