Feature: #83983 - Improved ModuleLinkViewHelper
See forge#83983
Description
The class \TYPO3\
has been improved by
providing two additional arguments:
query
: Allow defining query parameters also as stringcurrent
: The given argument is filled with the current URLUrl Parameter Name
With this change it is easily possible to migrate existing custom backend route viewhelpers to this one viewhelper.
For example:
Before:
{bu:editRecord(parameters: 'edit[be_users][{backendUser.uid}]=edit&returnUrl={returnUrl}')}
Copied!
After:
{be:moduleLink(route: 'record_edit', query: 'edit[be_users][{backendUser.uid}]=edit&returnUrl={returnUrl}')}
Copied!
... and the editRecord ViewHelper of be_user could be deprecated.