AbstractFormViewHelper

abstract class \TYPO3\CMS\Fluid\ViewHelpers\Form\AbstractFormViewHelper

Extends
AbstractTagBasedViewHelper

Abstract Form ViewHelper. Bundles functionality related to direct property access of objects in other Form ViewHelpers.

If you set the "property" attribute to the name of the property to resolve from the object, this class will automatically set the name and value of a form element.

Note this set of ViewHelpers is tailored to be used only in extbase context.

Table of Contents

Properties

$persistenceManager  : PersistenceManagerInterface

Methods

injectPersistenceManager()  : void
prefixFieldName()  : string
Prefixes / namespaces the given name with the form field prefix
registerFieldNameForFormTokenGeneration()  : void
Register a field name for inclusion in the HMAC / Form Token generation
renderHiddenIdentityField()  : string
Renders a hidden form field containing the technical identity of the given object.
shouldUseXHtmlSlash()  : bool

Properties

Methods

prefixFieldName()

Prefixes / namespaces the given name with the form field prefix

protected prefixFieldName(string $fieldName) : string

Parameters

$fieldName : string

Return values

string

registerFieldNameForFormTokenGeneration()

Register a field name for inclusion in the HMAC / Form Token generation

protected registerFieldNameForFormTokenGeneration(string $fieldName) : void

Parameters

$fieldName : string

renderHiddenIdentityField()

Renders a hidden form field containing the technical identity of the given object.

protected renderHiddenIdentityField(mixed $object, string|null $name) : string

Parameters

$object : mixed

Object to create the identity field for. Non-objects are ignored.

$name : string|null

Name

Tags

see
Argument::setValue()

Return values

string —

A hidden field containing the Identity (uid) of the given object

shouldUseXHtmlSlash()

protected shouldUseXHtmlSlash() : bool

Return values

bool
On this page