AbstractFormViewHelper extends AbstractTagBasedViewHelper

ViewHelper

This class is the implementation of a Fluid ViewHelper.

View this class in the TYPO3 ViewHelper reference: <f:form.abstractform>

AbstractYes

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.

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(object|null $object, string|null $name) : string
Parameters
$object : object|null

Object to create the identity field for

$name : string|null

Name

Tags
see
Argument::setValue()
Return values
string

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


        
On this page

Search results