TypoScriptConstantsViewHelper extends AbstractTagBasedViewHelper
This class is the implementation of a Fluid ViewHelper.
View this class in the TYPO3 ViewHelper reference: <core:form.typoscriptconstants>
ViewHelper for rendering - extension configuration forms in install tool (Settings -> Extension Configuration - site settings in Sites Module (site settings per site configuration)
Table of Contents
Properties
- $tagName : string
- $viewHelperMapping : array<string|int, mixed>
Methods
- initialize() : mixed
- Create a fresh instance of $this->tag each time this VH is called.
- initializeArguments() : mixed
- Initialize arguments of this ViewHelper
- render() : string
- Render
- renderCheckbox() : string
- Render field of type "checkbox"
- addIdAttribute() : void
- Build and add id-attribute from $configuration
- getFieldName() : string
- Get Field Name
- getLanguageService() : LanguageService|null
- renderColorPicker() : string
- Render field of type color picker
- renderHiddenFieldForEmptyValue() : string
- Render a hidden field for empty values
- renderIntegerField() : string
- Render field of type "integer"
- renderOffsetField() : string
- Render field of type "offset"
- renderOptionSelect() : string
- Render field of type "option"
- renderPositiveIntegerField() : string
- Render field of type "int+"
- renderSmallTextField() : string
- Render field of type "small text"
- renderTextField() : string
- Render field of type "text"
- renderUserFunction() : string
- Render field of type "userFunc"
- renderWrapField() : string
- Render field of type "wrap"
Properties
$tagName
public
string
$tagName
= 'input'
$viewHelperMapping
public
array<string|int, mixed>
$viewHelperMapping
= [
'int' => 'renderIntegerField',
'int+' => 'renderPositiveIntegerField',
'integer' => 'renderIntegerField',
'color' => 'renderColorPicker',
'wrap' => 'renderWrapField',
'offset' => 'renderOffsetField',
'options' => 'renderOptionSelect',
'boolean' => 'renderCheckbox',
'user' => 'renderUserFunction',
'small' => 'renderSmallTextField',
'string' => 'renderTextField',
'input' => 'renderTextField',
// only for backwards compatibility, many extensions depend on that
'default' => 'renderTextField',
]
Methods
initialize()
Create a fresh instance of $this->tag each time this VH is called.
public
initialize() : mixed
initializeArguments()
Initialize arguments of this ViewHelper
public
initializeArguments() : mixed
render()
Render
public
render() : string
Return values
string —the rendered tag
renderCheckbox()
Render field of type "checkbox"
public
renderCheckbox(array<string|int, mixed> $configuration) : string
Parameters
- $configuration : array<string|int, mixed>
Return values
stringaddIdAttribute()
Build and add id-attribute from $configuration
protected
addIdAttribute(array<string|int, mixed> $configuration) : void
Parameters
- $configuration : array<string|int, mixed>
getFieldName()
Get Field Name
protected
getFieldName(array<string|int, mixed> $configuration) : string
Parameters
- $configuration : array<string|int, mixed>
Return values
stringgetLanguageService()
protected
getLanguageService() : LanguageService|null
Return values
LanguageService|null —Returns null if we are in the install tool standalone mode
renderColorPicker()
Render field of type color picker
protected
renderColorPicker(array<string|int, mixed> $configuration) : string
Parameters
- $configuration : array<string|int, mixed>
Return values
stringrenderHiddenFieldForEmptyValue()
Render a hidden field for empty values
protected
renderHiddenFieldForEmptyValue(array<string|int, mixed> $configuration) : string
Parameters
- $configuration : array<string|int, mixed>
Return values
stringrenderIntegerField()
Render field of type "integer"
protected
renderIntegerField(array<string|int, mixed> $configuration) : string
Parameters
- $configuration : array<string|int, mixed>
Return values
stringrenderOffsetField()
Render field of type "offset"
protected
renderOffsetField(array<string|int, mixed> $configuration) : string
Parameters
- $configuration : array<string|int, mixed>
Return values
stringrenderOptionSelect()
Render field of type "option"
protected
renderOptionSelect(array<string|int, mixed> $configuration) : string
Parameters
- $configuration : array<string|int, mixed>
Return values
stringrenderPositiveIntegerField()
Render field of type "int+"
protected
renderPositiveIntegerField(array<string|int, mixed> $configuration) : string
Parameters
- $configuration : array<string|int, mixed>
Return values
stringrenderSmallTextField()
Render field of type "small text"
protected
renderSmallTextField(array<string|int, mixed> $configuration) : string
Parameters
- $configuration : array<string|int, mixed>
Return values
stringrenderTextField()
Render field of type "text"
protected
renderTextField(array<string|int, mixed> $configuration) : string
Parameters
- $configuration : array<string|int, mixed>
Return values
stringrenderUserFunction()
Render field of type "userFunc"
protected
renderUserFunction(array<string|int, mixed> $configuration) : string
Parameters
- $configuration : array<string|int, mixed>
Return values
stringrenderWrapField()
Render field of type "wrap"
protected
renderWrapField(array<string|int, mixed> $configuration) : string
Parameters
- $configuration : array<string|int, mixed>