-
Notifications
You must be signed in to change notification settings - Fork 359
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
Adjust Feedback/form.phtml to allow overriding the default action route #4187
Adjust Feedback/form.phtml to allow overriding the default action route #4187
Conversation
hmm, some odd deprecations, nvm watched the wrong errors.. |
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.
Thanks, @LuomaJuha -- see below for a few questions.
|
||
$formUrl = $this->url('feedback-form', ['id' => $this->formId]); | ||
$formUrl = $this->url($this->formActionUrl ?? 'feedback-form', ['id' => $this->formId]); |
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.
Where is formActionUrl set? Should this actually be $this->formActionUrl ?? $this->url(...)
so you override the actual URL instead of the route name? If not, should the variable be named formActionRoute
instead?
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.
hmm, actually setting the route in feedbackform yaml could be enough as everything else can be otbained from params and yaml, added a function for it now :) Gonna add a comment for it also
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.
Looks good to me! Thanks, @LuomaJuha!
No description provided.