Be.link ViewHelper <f:be.link>
A ViewHelper for creating URIs to modules.
Examples
URI to the web_ts module on page 92:
<f:be.link route="web_ts" parameters="{id: 92}">Go to web_ts</f:be.link>
Copied!
<a href="/typo3/module/web/ts?token=b6e9c9f&id=92">Go to web_ts</a>
Source code
Go to the source code of this ViewHelper: Be\LinkViewHelper.php (GitHub).
Arguments
Allows arbitrary arguments
This ViewHelper allows you to pass arbitrary arguments not defined below directly
to the HTML tag created. This includes custom
data-
arguments.
The following arguments are available for the be.link ViewHelper:
additionalAttributes
-
- Type
- array
Additional tag attributes. They will be added directly to the resulting HTML tag.
aria
-
- Type
- array
Additional aria-* attributes. They will each be added with a "aria-" prefix.
data
-
- Type
- array
Additional data-* attributes. They will each be added with a "data-" prefix.
parameters
-
- Type
- array
- Default
- array ( )
An array of parameters
referenceType
-
- Type
- string
- Default
- 'absolute'
The type of reference to be generated (one of the constants)
route
-
- Type
- string
- Required
- 1
The name of the route