Skip to content
Snippets Groups Projects
Commit 79a92168 authored by Brian Canini's avatar Brian Canini
Browse files

Updating drupal/social_media_links (2.7.0 => 2.8.0)

parent 27894215
No related merge requests found
......@@ -69,7 +69,10 @@ public function getPlatformsSortedByWeight(array $settings) {
$platforms[$platform_id]['weight'] = isset($settings['platforms'][$platform_id]['weight']) ? $settings['platforms'][$platform_id]['weight'] : $default_weight++;
}
uasort($platforms, ['Drupal\Component\Utility\SortArray', 'sortByWeightElement']);
uasort($platforms, [
'Drupal\Component\Utility\SortArray',
'sortByWeightElement',
]);
return $platforms;
}
......@@ -98,7 +101,10 @@ public function getPlatformsWithValue(array $platforms, $sort = TRUE) {
}
if ($sort) {
uasort($usedPlatforms, ['Drupal\Component\Utility\SortArray', 'sortByWeightElement']);
uasort($usedPlatforms, [
'Drupal\Component\Utility\SortArray',
'sortByWeightElement',
]);
}
return $usedPlatforms;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment