62 $pluginConfiguration = [];
63 if (isset($setup[
'plugin.'][
'tx_' . strtolower(
$extensionName) .
'.']) && is_array($setup[
'plugin.'][
'tx_' . strtolower(
$extensionName) .
'.'])) {
64 $pluginConfiguration = $this->typoScriptService->convertTypoScriptArrayToPlainArray($setup[
'plugin.'][
'tx_' . strtolower(
$extensionName) .
'.']);
68 if (isset($setup[
'plugin.'][
'tx_' . $pluginSignature .
'.']) && is_array($setup[
'plugin.'][
'tx_' . $pluginSignature .
'.'])) {
71 $this->typoScriptService->convertTypoScriptArrayToPlainArray($setup[
'plugin.'][
'tx_' . $pluginSignature .
'.'])
75 return $pluginConfiguration;
92 if (!is_array($switchableControllerActions)) {
93 $switchableControllerActions = [];
95 return $switchableControllerActions;
111 return $frameworkConfiguration;
123 $pages = $this->contentObject->data[
'pages'];
124 if (is_string($pages) && $pages !==
'') {
126 if ($this->contentObject->data[
'recursive'] > 0) {
127 $explodedPages = GeneralUtility::trimExplode(
',', $pages);
128 foreach ($explodedPages as $pid) {
129 $pids = $this->contentObject->getTreeList($pid, $this->contentObject->data[
'recursive']);
136 $pages = $pages .
',' . implode(
',', $list);
140 'storagePid' => $pages
144 return $frameworkConfiguration;
156 $pluginSignature = strtolower($frameworkConfiguration[
'extensionName'] .
'_' . $frameworkConfiguration[
'pluginName']);
157 $pluginConfiguration = $setup[
'plugin.'][
'tx_' . $pluginSignature .
'.'];
158 if (is_array($pluginConfiguration)) {
159 $pluginConfiguration = $this->typoScriptService->convertTypoScriptArrayToPlainArray($pluginConfiguration);
164 return $frameworkConfiguration;
176 $flexFormConfiguration = $this->contentObject->data[
'pi_flexform'];
177 if (is_string($flexFormConfiguration)) {
178 if ($flexFormConfiguration !==
'') {
179 $flexFormConfiguration = $this->flexFormService->convertFlexFormContentToArray($flexFormConfiguration);
181 $flexFormConfiguration = [];
184 if (is_array($flexFormConfiguration) && !empty($flexFormConfiguration)) {
190 return $frameworkConfiguration;
204 if (isset($frameworkConfiguration[$configurationPartName]) && is_array($frameworkConfiguration[$configurationPartName])) {
207 $frameworkConfiguration[$configurationPartName] =
$configuration[$configurationPartName];
210 return $frameworkConfiguration;
223 if (!isset($flexFormConfiguration[
'switchableControllerActions']) || is_array($flexFormConfiguration[
'switchableControllerActions'])) {
224 return $frameworkConfiguration;
228 $switchableControllerActionPartsFromFlexForm = GeneralUtility::trimExplode(
',', str_replace(
';',
',', $flexFormConfiguration[
'switchableControllerActions']),
true);
229 $newSwitchableControllerActionsFromFlexForm = [];
230 foreach ($switchableControllerActionPartsFromFlexForm as $switchableControllerActionPartFromFlexForm) {
231 list($controller, $action) = GeneralUtility::trimExplode(
'->', $switchableControllerActionPartFromFlexForm);
232 if (empty($controller) || empty($action)) {
233 throw new \TYPO3\CMS\Extbase\Configuration\Exception\ParseErrorException(
'Controller or action were empty when overriding switchableControllerActions from flexForm.', 1257146403);
235 $newSwitchableControllerActionsFromFlexForm[$controller][] = $action;
237 if (!empty($newSwitchableControllerActionsFromFlexForm)) {
240 return $frameworkConfiguration;
252 if ($recursionDepth <= 0) {
256 $recursiveStoragePids =
'';
257 $storagePids = GeneralUtility::intExplode(
',', $storagePid);
258 foreach ($storagePids as $startPid) {
260 if ((
string)$pids !==
'') {
261 $recursiveStoragePids .= $pids .
',';
264 return rtrim($recursiveStoragePids,
',');