2 declare(strict_types = 1);
32 'label' =>
'LLL:EXT:impexp/Resources/Private/Language/locallang.xlf:export',
33 'iconIdentifier' =>
'actions-document-export-t3d',
34 'callbackAction' =>
'exportT3d'
38 'label' =>
'LLL:EXT:impexp/Resources/Private/Language/locallang.xlf:import',
39 'iconIdentifier' =>
'actions-document-import-t3d',
40 'callbackAction' =>
'importT3d',
51 return !in_array($this->table, [
'sys_file',
'sys_filemounts',
'sys_file_storage'],
true)
52 && strpos($this->table,
'-drag') ===
false;
71 public function addItems(array $items): array
74 $localItems = $this->
prepareItems($this->itemsConfiguration);
75 if (isset($items[
'more'][
'childItems'])) {
76 $items[
'more'][
'childItems'] = $items[
'more'][
'childItems'] + $localItems;
78 $items += $localItems;
88 protected function canRender(
string $itemName,
string $type):
bool
90 if (in_array($itemName, $this->disabledItems,
true)) {
113 return [
'data-callback-module' =>
'TYPO3/CMS/Impexp/ContextMenuActions'];
121 return $this->backendUser->isAdmin()
122 || !$this->backendUser->isAdmin() && (bool)($this->backendUser->getTSConfig()[
'options.'][
'impexp.'][
'enableImportForNonAdminUser'] ??
false);