FluidTYPO3\Flux\Service\FluxService::getAllTypoScript PHP Method

getAllTypoScript() public method

Returns the complete, global TypoScript array defined in TYPO3.
public getAllTypoScript ( ) : array
return array
    public function getAllTypoScript()
    {
        if (!$this->configurationManager instanceof BackendConfigurationManager) {
            $typoScript = (array) $this->configurationManager->getConfiguration(ConfigurationManagerInterface::CONFIGURATION_TYPE_FULL_TYPOSCRIPT);
            $typoScript = GeneralUtility::removeDotsFromTS($typoScript);
            return $typoScript;
        } else {
            $pageId = $this->configurationManager->getCurrentPageId();
            if (FALSE === isset(self::$typoScript[$pageId])) {
                self::$typoScript[$pageId] = (array) $this->configurationManager->getConfiguration(ConfigurationManagerInterface::CONFIGURATION_TYPE_FULL_TYPOSCRIPT);
                self::$typoScript[$pageId] = GeneralUtility::removeDotsFromTS(self::$typoScript[$pageId]);
            }
            return (array) self::$typoScript[$pageId];
        }
    }