UpdateValueOnFieldChange

class \TYPO3\CMS\Backend\Form\Behavior\UpdateValueOnFieldChange

Implements
OnFieldChangeInterface

Updates `TBE_EDITOR` value (the default action), in case a particular field has been changed.

Table of Contents

Interfaces

OnFieldChangeInterface

Properties

$elementName  : string
$fieldName  : string
$identifier  : string
$tableName  : string

Methods

__construct()  : mixed
__toString()  : string
Backward compatible fallback, returning deprecated JavaScript code for `onclick` element attrs.
toArray()  : array{name: string, data?: string}
withElementName()  : self
generateInlineJavaScript()  : string

Properties

Methods

__construct()

public __construct(string $tableName, string $identifier, string $fieldName, string $elementName) : mixed

Parameters

$tableName : string
$identifier : string
$fieldName : string
$elementName : string

__toString()

Backward compatible fallback, returning deprecated JavaScript code for `onclick` element attrs.

public __toString() : string

Return values

string

toArray()

public toArray() : array{name: string, data?: string}

Return values

array{name: string, data?: string}

withElementName()

public withElementName(string $elementName) : self

Parameters

$elementName : string

Return values

self

generateInlineJavaScript()

protected generateInlineJavaScript() : string

Return values

string
On this page