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

Breadcrumb

  1. Drupal Core 11.1.x

AssetCollectionGroupOptimizerInterface.php

Namespace

Drupal\Core\Asset

File

core/lib/Drupal/Core/Asset/AssetCollectionGroupOptimizerInterface.php

View source
<?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;

}

Interfaces

Title Deprecated Summary
AssetCollectionGroupOptimizerInterface Interface defining a service that optimizes a collection of assets.
RSS feed
Powered by Drupal