Problem/Motivation
There are 3 NavigationBlock plugin provided by Navigation module: NavigationMenuBlock, NavigationShortcutsBlock & UserNavigationBlock.
The later follow a different name pattern, nd would be great to have a single naming convention for these blocks.
Proposed resolution
- Rename class
UserNavigationBlocktoNavigationUserBlock - Rename class
UserNavigationBlockTesttoNavigationUserBlockTest - Remove unused class property
moduleHandlerwhich is not being used while we are here
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Issue fork drupal-3446116
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:
- 3446116-rename-usernavigationblock-to
changes, plain diff MR !7984
Comments
Comment #2
plopescComment #3
plopescComment #4
sjothivelu commentedHi,
I can work on this issue.
Comment #6
plopescThank you for working on this one!
Would be great if you could merge 11.x branch into the MR branch to fix the broken tests. They're unrelated to the issue, but to the specific 11.x HEAD you used as base.
While we are here, would be great if you could remove the
moduleHandlerproperty from theNavigationUserBlockclass.You can completely remove __construct() & create() methods. We could also get rid of the reference to
ContainerFactoryPluginInterfacein the class definition.Thank you!
Comment #8
m4oliveiI've merged 11.x and made the changes requested in #6. Tests are now passing.
Ready for review.
Comment #9
plopescThank you both for taking care of it!
I think we can mark this as RTBC.
Comment #10
catchCommitted/pushed to 11.x and cherry-picked back through to 10.3.x, thanks!
Comment #16
catch