Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Problem/motivation
When #2028499: drupal_sort_weight should be converted to a class goes in, then drupal_sort_weight will be deprecated.
Proposed resolution
Replace all instances of
uasort($operations, 'drupal_sort_weight');
with
uasort($operations, array('Drupal\Component\Utility\SortArray', 'sortByWeightElement'));
Comment | File | Size | Author |
---|---|---|---|
#7 | drupal_2029537_7.patch | 8.5 KB | Xano |
Comments
Comment #0.0
tsphethean CreditAttribution: tsphethean commentedUpdated issue summary.
Comment #0.1
tsphethean CreditAttribution: tsphethean commentedUpdated issue summary.
Comment #1
-enzo- CreditAttribution: -enzo- commentedHello guys I did a small patch to do this replacement
Comment #2.0
(not verified) CreditAttribution: commentedUpdated issue summary.
Comment #3
sunComment #4
InternetDevels CreditAttribution: InternetDevels commentedNew patch attached.
Comment #5
sunThanks!
Comment #6
webchickNo longer applies.
Comment #7
XanoRe-roll.
Comment #8
tstoecklerWas RTBC before and looks good still.
Comment #9
webchickCommitted and pushed to 8.x. Thanks!
Needs a change notice.
Comment #10
kim.pepperChange notice created https://drupal.org/node/2181331