Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 296300

Sort menu list by menu title

$
0
0

Problem/Motivation

The admin menu list (/admin/structure/menu) appears to sort alphabetically by menu title until the list exceeds one page. When the number of menus exceeds 50, the list is paginated and menus are then sorted 1) by machine name across all menus, then 2) alphabetically by menu title per listing page. If menu titles are changed such that they no longer align with the machine name, they can be difficult to find across a multipage list.

Steps to Reproduce

  1. Create/generate more than 50 menus (e.g. with devel)
  2. Change an early menu title on page 1 such that it should sort to the end of the entire menu list

You'll find that it only moves to the bottom of page 1, not to the end of the last page

Proposed resolution

Implement/override getEntityIds() in MenuListBuilder.php to explicitly sort the list query by menu title ('label').

Remaining tasks

Write a patch
Tests
Review
Commit

User interface changes

Menu list will be sorted alphabetically by menu title across the entire menu list.

API changes

None.

Data model changes

None.

Release notes snippet

TBD


Viewing all articles
Browse latest Browse all 296300

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>