Functions¶
dump¶
{{ dump(var1, var2, ...) }}
The dump()
functions prints the contents of a variable.
This is useful for debugging.
Please ensure that your frontend is in debug mode because otherwise the function does not print anything.
Internally DebuggerUtility::var_dump()
is used.
{# print a single variable #}
{{ dump(foo) }}
{# print multiple variables #}
{{ dump(foo, bar, baz) }}
{# print all variables #}
{{ dump() }}
t3_cobject¶
{{ t3_cobject(typoScriptObjectPath, data = null, currentValueKey = null, table = null) }}
Renders a TypoScript object.
The content object renderer can be populated using the data
argument.
Arguments¶
- typoScriptObjectPath
- Type:
string
- data
- Type:
mixed
| Default:null
- currentValueKey
- Type:
?string
| Default:null
- table
- Type:
?string
| Default:null
t3_form_render¶
{{ t3_form_render(persistenceIdentifier = null, factoryClass = 'ArrayFormFactory', prototypeName = null, overrideConfiguration = {}) }}
Renders a form using the form framework.
Arguments¶
- persistenceIdentifier
Type:
?string
| Default:null
The identifier of the form, if a YAML file is used. If
null
, then a Factory class needs to be set.- factoryClass
Type:
string
| Default:\TYPO3\CMS\Form\Domain\Factory\ArrayFormFactory
The fully qualified class name of the factory.
- prototypeName
Type:
?string
| Default:?string
Name of the prototype to use.
- overrideConfiguration
Type:
array
| Default:[]
Factory specific configuration. This will allow to add additional configuration related to the current view.
t3_uri_action¶
{{ t3_uri_action(
action,
arguments = [],
controller = null,
extensionName = null,
pluginName = null,
pageUid = null,
pageType = 0,
noCache = false,
noCacheHash = false,
section = '',
format = '',
linkAccessRestrictedPages = false,
additionalParams = [],
absolute = false,
addQueryString = false,
argumentsToBeExcludedFromQueryString = [],
addQueryStringMethod = ''
) }}
Renders an URI to an Extbase action.
Arguments¶
- action
- Type:
string
- arguments
- Type:
array
| Default:[]
- controller
- Type:
?string
| Default:null
- extensionName
- Type:
?string
| Default:null
- pluginName = null,
- Type:
?string
| Default:null
- pageUid,
- Type:
?int
| Default:null
- pageType
- Type:
int
| Default:0
- noCache
- Type:
bool
| Default:false
- noCacheHash
- Type:
bool
| Default:false
- section = ‘’,
- Type:
string
| Default:""
(empty string) - format,
- Type:
string
| Default:""
(empty string) - linkAccessRestrictedPages
- Type:
bool
| Default:false
- additionalParams
- Type:
array
| Default:[]
- absolute
- Type:
bool
| Default:false
- addQueryString
- Type:
bool
| Default:false
- argumentsToBeExcludedFromQueryString
- Type:
array
| Default:[]
- addQueryStringMethod
- Type:
string
| Default:""
(empty string)
t3_uri_image¶
{{ t3_uri_image(
src = null,
treatIdAsReference = false,
image = null,
crop = false,
cropVariant = 'default',
width = '',
height = '',
minWidth = 0,
minHeight = 0,
maxWidth = 0,
maxHeight = 0,
absolute = false
) }}
Returns the URL to the given image.
If an error occurs, then null
is returned and no error is raised.
Arguments¶
- src
- Type:
?string
- treatIdAsReference
- Type:
bool
| Default:false
- image
Type:
?mixed
The image can be a reference or an instance of
FileInterface
orFileReference
.- crop
Type:
?string
| Default:null
The JSON-formatted crop settings.
- cropVariant
- Type:
string
| Default:default
- width
- Type:
int
| Default:0
- height
- Type:
int
| Default:0
- minWidth
- Type:
int
| Default:0
- minHeight
- Type:
int
| Default:0
- maxWidth
- Type:
int
| Default:0
- maxHeight
- Type:
int
| Default:0
t3_uri_model¶
{{ t3_uri_model(model) }}
Generates a link for the given Extbase model. A link handler must be configured for the mapped table.
Arguments¶
- model
- Type:
\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface
t3_uri_page¶
{{ t3_uri_page(
pageUid = null,
additionalParams = [],
pageType = 0,
noCache = false,
noCacheHash = false,
section = '',
linkAccessRestrictedPages = false,
absolute = false,
addQueryString = false,
argumentsToBeExcludedFromQueryString = [],
addQueryStringMethod = ''
) }}
- pageUid
- Type:
?int
| Default:null
- additionalParams
- Type:
array
| Default:[]
- pageType
- Type:
int
| Default:0
- noCache
- Type:
bool
| Default:false
- noCacheHash
- Type:
bool
| Default:false
- section
- Type:
string
| Default:""
(empty string) - linkAccessRestrictedPages
- Type:
bool
| Default:false
- absolute
- Type:
bool
| Default:false
- addQueryString
- Type:
bool
- argumentsToBeExcludedFromQueryString
- Type:
array
| Default:[]
- addQueryStringMethod
- Type:
?string
| Default:""
(empty string)
t3_uri_record¶
{{ t3_uri_record(table, recordUid) }}
Generates a link for the given record. A link handler must be configured for the mapped table.
Arguments¶
- table
Type:
string
The table of the record.
- recordUid
Type:
int
The uid of the record.
t3_uri_typolink¶
{{ t3_uri_typolink(parameter, additionalParams = {}, useCacheHash = false)
Arguments¶
- parameter
- Type:
string
- additionalParams
- Type:
array
| Default:[]
- useCacheHash
- Type:
bool
| Default:false