Problem/Motivation
In contrast to titles plugin IDs don't change over time. This is a problem when you translate menu links for example. Icons might disappear,
if css classes rely on those titles.
toolbar_menu_navigation_links() uses
$element->options['attributes']['class'][] = 'toolbar-icon-' . strtolower(str_replace(' ', '-', $definition['title']));
Proposed resolution
Change it to use the id of the plugin. This might change the required css classes so those needs to be adapted in toolbar.icons.css
as well.
Remaining tasks
User interface changes
API changes
Comments
Comment #1
dawehnerExplained what needs to be done. I hope this is enough information.
Comment #2
garphyComment #3
garphyComment #5
garphyFixed test that was relying on an updated class name.
Comment #6
dawehnerYou should be able to drop the todo now. (maybe close the mentioned issue here as a duplicate of this one).
Comment #7
garphyRemoved the @todo and closed the duplicate issue.
Comment #8
garphyComment #9
dawehnerreally nice work!
Comment #10
wim leersIndeed, lovely! Thank you :)
Comment #11
alexpottCommitted 9830a27 and pushed to 8.0.x. Thanks!