Problem/Motivation
The module provides NavigationExtraPlugin plugins where the icon is hardcoded in the plugin. It would be very nice if we allowed to customise those icons.
Steps to reproduce
N/A
Proposed resolution
Use the UI Icons module as provider for selecting the icons but make it a soft dependency so its not required to install the module. So customisation is only possible if the module is installed.Make sure the code does not break when uninstalling UI Icons afterwards.
Provide an icon selector on each NavigationExtraPlugin when the plugin is enabled.
Overwrite the hard coded icon when there is an icon, fall back on the default when there is no icon selected.
Remaining tasks
See above.
User interface changes
There will be an icon select method when the UI icons module is installed.
API changes
None
Data model changes
Schema addition for the icon.
Issue fork navigation_extra-3580836
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
jyrkimouton commentedComment #5
tim-dielsThe icon definition should be done differently. Maybe leverage the code from #3493153: Config schema miss?
Comment #6
tim-dielsComment #10
tim-dielsComment #12
tim-diels