‪TYPO3CMS  10.4
TYPO3\CMS\Backend\Form\Element\InlineElementHookInterface Interface Reference

Public Member Functions

 renderForeignRecordHeaderControl_preProcess ($parentUid, $foreignTable, array $childRecord, array $childConfig, $isVirtual, array &$enabledControls)
 
 renderForeignRecordHeaderControl_postProcess ($parentUid, $foreignTable, array $childRecord, array $childConfig, $isVirtual, array &$controlItems)
 

Detailed Description

Interface for classes which hook into inline element handling

Definition at line 21 of file InlineElementHookInterface.php.

Member Function Documentation

◆ renderForeignRecordHeaderControl_postProcess()

TYPO3\CMS\Backend\Form\Element\InlineElementHookInterface::renderForeignRecordHeaderControl_postProcess (   $parentUid,
  $foreignTable,
array  $childRecord,
array  $childConfig,
  $isVirtual,
array &  $controlItems 
)

Post-processing to define which control items to show. Possibly own icons can be added here.

Parameters
string$parentUid‪The uid of the parent (embedding) record (uid or NEW...)
string$foreignTable‪The table (foreign_table) we create control-icons for
array$childRecord‪The current record of that foreign_table
array$childConfig‪TCA configuration of the current field of the child record
bool$isVirtual‪Defines whether the current records is only virtually shown and not physically part of the parent record
array$controlItems‪(reference) Associative array with the currently available control items

◆ renderForeignRecordHeaderControl_preProcess()

TYPO3\CMS\Backend\Form\Element\InlineElementHookInterface::renderForeignRecordHeaderControl_preProcess (   $parentUid,
  $foreignTable,
array  $childRecord,
array  $childConfig,
  $isVirtual,
array &  $enabledControls 
)

Pre-processing to define which control items are enabled or disabled.

Parameters
string$parentUid‪The uid of the parent (embedding) record (uid or NEW...)
string$foreignTable‪The table (foreign_table) we create control-icons for
array$childRecord‪The current record of that foreign_table
array$childConfig‪TCA configuration of the current field of the child record
bool$isVirtual‪Defines whether the current records is only virtually shown and not physically part of the parent record
array$enabledControls‪(reference) Associative array with the enabled control items