summaryrefslogtreecommitdiffstatshomepage
path: root/core/lib/Drupal/Core/Asset/AssetCollectionGroupOptimizerInterface.php
blob: 244013fc581482cc3e6f6cc1da67098cecf83377 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php

namespace Drupal\Core\Asset;

/**
 * Interface defining a service that optimizes a collection of assets.
 *
 * Contains an additional method to allow for optimizing an asset group.
 */
interface AssetCollectionGroupOptimizerInterface extends AssetCollectionOptimizerInterface {

  /**
   * Optimizes a specific group of assets.
   *
   * @param array $group
   *   An asset group.
   *
   * @return string
   *   The optimized string for the group.
   */
  public function optimizeGroup(array $group): string;

}