Updated: Comment #0
Problem/Motivation
Altering the menu list is messy.
See #2004428: Less ugly operations altering.
Also, this is probably already intended to be done as part of converting to configuration and entities.
See:
$form_id 'filter_admin_overview'
admin/config/content/formats/
Proposed resolution
Use EntityListController for formats
Remaining tasks
- Correct the component or other things about this issue.
- Decide if this is a duplicate.
- Look at #1891690: Use EntityListController for vocabularies for an example of how to get started (is there a better one?)
User interface changes
No.
API changes
?
Comments
Comment #1
Gábor HojtsyIndeed, looks like from filter.admin.inc, neither the list nor the format editing is handled with entity controllers. Surprising! Looks from the code only filter_admin_overview() and filter_admin_overview_submit() are involved in the list, so this should be a relatively easy change.
Comment #2
Gábor HojtsyBTW I looked at #1781372: Add an API for listing (configuration) entities and related issues whether there was already an issue for this, but could not find one.
Comment #3
dawehnerThis is covered by #1987124: Convert filter_admin_format_page() and filter_admin_overview() to a Controller already.
Comment #4
Gábor HojtsyI *knew* there should be an issue for that, thanks!