Bug #67270 » local_history.patch
../../../opt/typo3_src/typo3_72_current/typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php (revision ) | ||
---|---|---|
* The order of the icons is depending on the order of those array entries.
|
||
*/
|
||
if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/class.db_list_extra.inc']['actions'])) {
|
||
foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/class.db_list_extra.inc']['actions'] as $classData) {
|
||
$hookObject = GeneralUtility::getUserObj($classData);
|
||
if (!$hookObject instanceof RecordListHookInterface) {
|
||
throw new \UnexpectedValueException('$hookObject must implement interface ' . RecordListHookInterface::class, 1195567840);
|
||
}
|
||
// for compatibility reason, we move all icons to the rootlevel
|
||
// before calling the hook
|
||
foreach ($cells as $section => $actions) {
|
||
foreach ($actions as $actionKey => $action) {
|
||
$cells[$actionKey] = $action;
|
||
}
|
||
// for compatibility reason, we move all icons to the rootlevel
|
||
// before calling the hook
|
||
foreach ($cells as $section => $actions) {
|
||
foreach ($actions as $actionKey => $action) {
|
||
$cells[$actionKey] = $action;
|
||
}
|
||
}
|
||
foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/class.db_list_extra.inc']['actions'] as $classData) {
|
||
$hookObject = GeneralUtility::getUserObj($classData);
|
||
if (!$hookObject instanceof RecordListHookInterface) {
|
||
throw new \UnexpectedValueException('$hookObject must implement interface ' . RecordListHookInterface::class, 1195567840);
|
||
}
|
||
$cells = $hookObject->makeControl($table, $row, $cells, $this);
|
||
}
|