41 $pageId = $table ===
'pages' ? $row[
'uid'] : $row[
'pid'];
43 $fieldTSconfig = $TSconfig[
'TCEFORM.'][$table .
'.'][$field .
'.'];
46 $params[
'items'] = &$selectedItems;
47 $params[
'config'] = $tcaConfig;
48 $params[
'TSconfig'] = $fieldTSconfig[
'itemsProcFunc.'];
49 $params[
'table'] = $table;
50 $params[
'row'] = $row;
51 $params[
'field'] = $field;
56 GeneralUtility::callUserFunction($tcaConfig[
'itemsProcFunc'], $params, $this);
60 if (isset(
$GLOBALS[
'TCA'][$table][
'columns'][$field][
'label'])) {
61 $fieldLabel = $languageService->sL(
$GLOBALS[
'TCA'][$table][
'columns'][$field][
'label']);
64 $languageService->sL(
'LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:error.items_proc_func_error'),
66 $exception->getMessage()
69 $flashMessage = GeneralUtility::makeInstance(
77 $flashMessageService = GeneralUtility::makeInstance(FlashMessageService::class);
78 $defaultFlashMessageQueue = $flashMessageService->getMessageQueueByIdentifier();
79 $defaultFlashMessageQueue->enqueue($flashMessage);
82 return $selectedItems;