39 public function renderTceformsSelectDropdown(&$PA, &$tceformsObj) {
41 $storageUid = (int)$PA[
'row'][
'base'];
44 $storageUid = (int)$PA[
'row'][
'storage'];
46 if ($storageUid > 0) {
50 $storage = $storageRepository->findByUid($storageUid);
51 if ($storage === NULL) {
54 $queue = $flashMessageService->getMessageQueueByIdentifier();
56 if (!count($PA[
'items'])) {
57 $PA[
'items'][] = array(
58 $PA[
'row'][$PA[
'field']],
59 $PA[
'row'][$PA[
'field']]
62 } elseif ($storage->isBrowsable()) {
63 $rootLevelFolders = array();
65 $fileMounts = $storage->getFileMounts();
66 if (!empty($fileMounts)) {
67 foreach ($fileMounts as $fileMountInfo) {
68 $rootLevelFolders[] = $fileMountInfo[
'folder'];
71 $rootLevelFolders[] = $storage->getRootLevelFolder();
74 foreach ($rootLevelFolders as $rootLevelFolder) {
76 foreach ($folderItems as $item) {
77 $PA[
'items'][] = array(
78 $item->getIdentifier(),
79 $item->getIdentifier()
86 $queue = $flashMessageService->getMessageQueueByIdentifier();
88 if (!count($PA[
'items'])) {
89 $PA[
'items'][] = array(
90 $PA[
'row'][$PA[
'field']],
91 $PA[
'row'][$PA[
'field']]
96 $PA[
'items'][] = array(
'',
'Please choose a FAL mount from above first.');
114 $allFolderItems = array($parentFolder);
115 $subFolders = $parentFolder->getSubfolders();
116 foreach ($subFolders as $subFolder) {
119 }
catch(\
TYPO3\CMS\Core\Resource\
Exception\InsufficientFolderReadPermissionsException $e) {
120 $subFolderItems = array();
122 $allFolderItems = array_merge($allFolderItems, $subFolderItems);
124 return $allFolderItems;
static makeInstance($className)
getSubfoldersForOptionList(\TYPO3\CMS\Core\Resource\Folder $parentFolder, $level=0)