Commit 9e5a9424 authored by catch's avatar catch
Browse files

Issue #2647778 by ranjith_kumar_k_u, NickDickinsonWilde, Rakhi Soni,...

Issue #2647778 by ranjith_kumar_k_u, NickDickinsonWilde, Rakhi Soni, smustgrave, jhodgdon: AssetResolver::sort() param documentation improvements

(cherry picked from commit b271615b)
parent fa54f53f
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -339,19 +339,22 @@ public function getJsAssets(AttachedAssetsInterface $assets, $optimize) {
  /**
   * Sorts CSS and JavaScript resources.
   *
   * Callback for uasort().
   *
   * This sort order helps optimize front-end performance while providing
   * modules and themes with the necessary control for ordering the CSS and
   * JavaScript appearing on a page.
   *
   * @param $a
   * @param array $a
   *   First item for comparison. The compared items should be associative
   *   arrays of member items.
   * @param $b
   * @param array $b
   *   Second item for comparison.
   *
   * @return int
   *   The comparison result for uasort().
   */
  public static function sort($a, $b) {
  public static function sort(array $a, array $b) {
    // First order by group, so that all items in the CSS_AGGREGATE_DEFAULT
    // group appear before items in the CSS_AGGREGATE_THEME group. Modules may
    // create additional groups by defining their own constants.