AssetCollectionGroupOptimizerInterface.php

Same filename in other branches
  1. 11.x core/lib/Drupal/Core/Asset/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.

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