TYPO3 CMS  TYPO3_7-6
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 20 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$parentUidThe uid of the parent (embedding) record (uid or NEW...)
string$foreignTableThe table (foreign_table) we create control-icons for
array$childRecordThe current record of that foreign_table
array$childConfigTCA configuration of the current field of the child record
bool$isVirtualDefines 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
Returns
void

◆ 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$parentUidThe uid of the parent (embedding) record (uid or NEW...)
string$foreignTableThe table (foreign_table) we create control-icons for
array$childRecordThe current record of that foreign_table
array$childConfigTCA configuration of the current field of the child record
bool$isVirtualDefines 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
Returns
void