diff --git a/core/includes/common.inc b/core/includes/common.inc index 61b63be..570fc2b 100644 --- a/core/includes/common.inc +++ b/core/includes/common.inc @@ -1,6 +1,7 @@ getOperations($entity); $this->moduleHandler->alter('entity_operation', $operations, $entity); - uasort($operations, 'drupal_sort_weight'); + uasort($operations, array('Drupal\Component\Utility\SortArray', 'sortWeight')); $build = array( '#type' => 'operations', '#links' => $operations,