ModifyInlineElementControlsEvent

final class \TYPO3\CMS\Backend\Form\Event\ModifyInlineElementControlsEvent

Listeners to this Event will be able to modify the controls of an inline element

Table of Contents

Methods

__construct()  : mixed
getControl()  : string
Returns the markup for the requested control
getControls()  : array
Returns all controls with their markup
getElementData()  : array
Returns the whole element data
getFieldConfiguration()  : array
Returns the TCA configuration of the inline record field
getForeignTable()  : string
Returns the table (foreign_table) the controls are created for
getParentUid()  : string
Returns the uid of the parent (embedding) record (uid or NEW...)
getRecord()  : array
Returns the current record of the controls are created for
hasControl()  : bool
Returns whether a control exists for the given identifier
isVirtual()  : bool
Returns whether the current records is only virtually shown and not physically part of the parent record
removeControl()  : bool
Removes a control from the inline element, if it exists
setControl()  : void
Set a control with the given identifier and markup IMPORTANT: Overwrites an existing control with the same identifier
setControls()  : void
Overwrite the controls

Methods

__construct()

public __construct(array $controls, array $data, array $record) : mixed

Parameters

$controls : array
$data : array
$record : array

getControl()

Returns the markup for the requested control

public getControl(string $identifier) : string

Parameters

$identifier : string

Return values

string

getControls()

Returns all controls with their markup

public getControls() : array

Return values

array

getElementData()

Returns the whole element data

public getElementData() : array

Return values

array

getFieldConfiguration()

Returns the TCA configuration of the inline record field

public getFieldConfiguration() : array

Return values

array

getForeignTable()

Returns the table (foreign_table) the controls are created for

public getForeignTable() : string

Return values

string

getParentUid()

Returns the uid of the parent (embedding) record (uid or NEW...)

public getParentUid() : string

Return values

string

getRecord()

Returns the current record of the controls are created for

public getRecord() : array

Return values

array

hasControl()

Returns whether a control exists for the given identifier

public hasControl(string $identifier) : bool

Parameters

$identifier : string

Return values

bool

isVirtual()

Returns whether the current records is only virtually shown and not physically part of the parent record

public isVirtual() : bool

Return values

bool

removeControl()

Removes a control from the inline element, if it exists

public removeControl(string $identifier) : bool

Parameters

$identifier : string

Return values

bool —

Whether the control could be removed

setControl()

Set a control with the given identifier and markup IMPORTANT: Overwrites an existing control with the same identifier

public setControl(string $identifier, string $markup) : void

Parameters

$identifier : string
$markup : string

setControls()

Overwrite the controls

public setControls(array $controls) : void

Parameters

$controls : array
On this page