ModuleLink ViewHelper <be:moduleLink>
Create internal link within backend.
Examples
Default:
<form action="{be:moduleLink(route:'pages_new', arguments:'{id:pageUid}')}" method="post">
<!-- form content -->
</form>
Copied!
Output:
<form action="/pages/new" method="post">
<!-- form content -->
</form>
Copied!
Source code
Go to the source code of this ViewHelper: ModuleLinkViewHelper.php (GitHub).
Arguments
The following arguments are available for the moduleLink ViewHelper:
arguments
-
- Type
- array
- Default
- array ( )
Additional link arguments (e.g. id or returnUrl)
currentUrlParameterName
-
- Type
- string
Add current url as given parameter
query
-
- Type
- string
Additional link arguments as string (e.g. id or returnUrl)
route
-
- Type
- string
- Required
- 1
The route to link to