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

Breadcrumb

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

function 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;

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal