ModifyInlineElementEnabledControlsEvent
Listeners to this Event will be able to modify the state (enabled or disabled) for controls of an inline element
Table of Contents
Methods
- __construct() : mixed
- disableControl() : bool
- Disable a control, if it exists
- enableControl() : bool
- Enable a control, if it exists
- getControlsState() : array<string|int, mixed>
- Returns all controls with their state (enabled or disabled)
- getElementData() : array<string|int, mixed>
- Returns the whole element data
- getEnabledControls() : array<string|int, mixed>
- Returns all enabled controls
- getFieldConfiguration() : array<string|int, mixed>
- 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<string|int, mixed>
- Returns the current record of the controls are created for
- hasControl() : bool
- Returns whether a control exists for the given identifier
- isControlEnabled() : bool
- Returns whether the control is enabled.
- isVirtual() : bool
- Returns whether the current records is only virtually shown and not physically part of the parent record
Methods
__construct()
public
__construct(array<string|int, mixed> $data, array<string|int, mixed> $record) : mixed
Parameters
- $data : array<string|int, mixed>
- $record : array<string|int, mixed>
disableControl()
Disable a control, if it exists
public
disableControl(string $identifier) : bool
Parameters
- $identifier : string
Return values
bool —Whether the control could be disabled
enableControl()
Enable a control, if it exists
public
enableControl(string $identifier) : bool
Parameters
- $identifier : string
Return values
bool —Whether the control could be enabled
getControlsState()
Returns all controls with their state (enabled or disabled)
public
getControlsState() : array<string|int, mixed>
Return values
array<string|int, mixed>getElementData()
Returns the whole element data
public
getElementData() : array<string|int, mixed>
Return values
array<string|int, mixed>getEnabledControls()
Returns all enabled controls
public
getEnabledControls() : array<string|int, mixed>
Return values
array<string|int, mixed>getFieldConfiguration()
Returns the TCA configuration of the inline record field
public
getFieldConfiguration() : array<string|int, mixed>
Return values
array<string|int, mixed>getForeignTable()
Returns the table (foreign_table) the controls are created for
public
getForeignTable() : string
Return values
stringgetParentUid()
Returns the uid of the parent (embedding) record (uid or NEW...)
public
getParentUid() : string
Return values
stringgetRecord()
Returns the current record of the controls are created for
public
getRecord() : array<string|int, mixed>
Return values
array<string|int, mixed>hasControl()
Returns whether a control exists for the given identifier
public
hasControl(string $identifier) : bool
Parameters
- $identifier : string
Return values
boolisControlEnabled()
Returns whether the control is enabled.
public
isControlEnabled(string $identifier) : bool
Note: Will also return FALSE in case no control exists for the requested identifier
Parameters
- $identifier : string
Return values
boolisVirtual()
Returns whether the current records is only virtually shown and not physically part of the parent record
public
isVirtual() : bool