function AssetDumperUriInterface::dumpToUri

Same name in other branches
  1. 10 core/lib/Drupal/Core/Asset/AssetDumperUriInterface.php \Drupal\Core\Asset\AssetDumperUriInterface::dumpToUri()

Dumps an (optimized) asset to persistent storage.

Parameters

string $data: The asset's contents.

string $file_extension: The file extension of this asset.

string $uri: The URI to dump to.

Return value

string An URI to access the dumped asset.

1 method overrides AssetDumperUriInterface::dumpToUri()
AssetDumper::dumpToUri in core/lib/Drupal/Core/Asset/AssetDumper.php
Dumps an (optimized) asset to persistent storage.

File

core/lib/Drupal/Core/Asset/AssetDumperUriInterface.php, line 23

Class

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

Namespace

Drupal\Core\Asset

Code

public function dumpToUri(string $data, string $file_extension, string $uri) : string;

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