You are here

public function AssetOptimizerInterface::clean in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Asset/AssetOptimizerInterface.php \Drupal\Core\Asset\AssetOptimizerInterface::clean()
  2. 9 core/lib/Drupal/Core/Asset/AssetOptimizerInterface.php \Drupal\Core\Asset\AssetOptimizerInterface::clean()

Removes unwanted content from an asset.

Parameters

string $content: The content of an asset.

Return value

string The cleaned asset's contents.

File

core/lib/Drupal/Core/Asset/AssetOptimizerInterface.php, line 30

Class

AssetOptimizerInterface
Interface defining a service that optimizes an asset.

Namespace

Drupal\Core\Asset

Code

public function clean($content);