Skip to content
Snippets Groups Projects
Commit 01014f5e authored by Ciprian Stavovei's avatar Ciprian Stavovei Committed by Wolfgang Ziegler
Browse files

Issue #3348077: Local tasks links should be the same as the admin interface

parent 0025b80b
No related branches found
No related tags found
1 merge request!30Issue #3348077: Local tasks links should be the same as the admin interface
......@@ -334,6 +334,10 @@ class CustomElementsRenderer {
private function prepareLocalTaskLinks(array $render_links) {
$local_tasks = [];
if (!empty($render_links)) {
// Order the links by weight.
usort($render_links, function (array $link1, array $link2): int {
return $link1['#weight'] <=> $link2['#weight'];
});
foreach ($render_links as $render_link) {
/** @var \Drupal\Core\Access\AccessResult $access */
$access = $render_link['#access'] ?? FALSE;
......
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