Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a new sortOrder option to sort menu items when they are added t… #381

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

B4rb4ross4
Copy link
Contributor

…o the menu.

Suggestion for #380

@B4rb4ross4
Copy link
Contributor Author

I haven't changed the extra methods. I could fix the type hints in this branch if you like or I could create a separate pr. Just wondering how that could ever be merge to master if the build is failing ;)

$menu->addChild('c2', ['sortOrder' => 4]);
$menu->addChild('c3', ['sortOrder' => 1]);
$menu->addChild('c4', ['sortOrder' => 3]);

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this line missing here?
$menu->reorderChildren();

Copy link
Collaborator

@garak garak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please address problems highlighted by phpstan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants