function AssetCollectionGroupOptimizerInterface::optimizeGroup

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

Optimizes a specific group of assets.

Parameters

array $group: An asset group.

Return value

string The optimized string for the group.

2 methods override AssetCollectionGroupOptimizerInterface::optimizeGroup()
CssCollectionOptimizerLazy::optimizeGroup in core/lib/Drupal/Core/Asset/CssCollectionOptimizerLazy.php
Optimizes a specific group of assets.
JsCollectionOptimizerLazy::optimizeGroup in core/lib/Drupal/Core/Asset/JsCollectionOptimizerLazy.php
Optimizes a specific group of assets.

File

core/lib/Drupal/Core/Asset/AssetCollectionGroupOptimizerInterface.php, line 21

Class

AssetCollectionGroupOptimizerInterface
Interface defining a service that optimizes a collection of assets.

Namespace

Drupal\Core\Asset

Code

public function optimizeGroup(array $group) : string;

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