-
Notifications
You must be signed in to change notification settings - Fork 232
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
[TASK] Add option to disable translation fallback in menus #1499
base: development
Are you sure you want to change the base?
[TASK] Add option to disable translation fallback in menus #1499
Conversation
(Build failure is unrelated.) |
@mbrodala Can you do a rebase of this? |
c1cf041
to
555e329
Compare
Done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need a strategy that moves us around the issue of signature changes for menu-related methods...
@@ -60,7 +61,8 @@ public function getMenu( | |||
array $excludePages = [], | |||
$includeNotInMenu = false, | |||
$includeMenuSeparator = false, | |||
$disableGroupAccessCheck = false | |||
$disableGroupAccessCheck = false, | |||
$normalWhenNoLanguage = false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have a couple of other patches which all try to change the method signature for getMenu which in turn affects any ViewHelper using menu functions. I'm extremely hesitant to change this bit unless it gets changed to a way that will prevent future signature changes, which means either:
- Implementing a DTO that contains menu configuration instructions.
- Or replacing this with whichever core method allows us to read a menu without rendering it as HTML.
But I don't think we should open the flood gates for this signature change because it's going to happen again and again, and the signature will become bloated. It's already pretty bad...
7b35850
to
50d769b
Compare
Fixes #1498