private function retrieveConfigurationFromTypoScriptSetup($namespace)
    {
        $data = $this->getCompleteTypoScriptSetup();

        $namespaceParts = explode('.', $namespace);
        foreach ($namespaceParts as $namespacePart) {
            if (!array_key_exists($namespacePart . '.', $data)) {
                $data = [];
                break;
            }

            $data = $data[$namespacePart . '.'];
        }

        /** @var \Tx_Oelib_Configuration $configuration */
        $configuration = GeneralUtility::makeInstance(\Tx_Oelib_Configuration::class);
        $configuration->setData($data);
        return $configuration;
    }
private function retrieveConfigurationFromTypoScriptSetup($namespace)
    {
        $data = $this->getCompleteTypoScriptSetup();

        $namespaceParts = explode('.', $namespace);
        foreach ($namespaceParts as $namespacePart) {
            if (!array_key_exists($namespacePart . '.', $data)) {
                $data = [];
                break;
            }

            $data = $data[$namespacePart . '.'];
        }

        /** @var \Tx_Oelib_Configuration $configuration */
        $configuration = GeneralUtility::makeInstance(\Tx_Oelib_Configuration::class);
        $configuration->setData($data);
        return $configuration;
    }
private function retrieveConfigurationFromTypoScriptSetup ( $ namespace ) { $ data = $ this -> getCompleteTypoScriptSetup ( ) ; $ namespaceParts = explode ( '.' , $ namespace ) ; foreach ( $ namespaceParts as $ namespacePart ) { if ( ! array_key_exists ( $ namespacePart . '.' , $ data ) ) { $ data = [ ] ; break ; } $ data = $ data [ $ namespacePart . '.' ] ; } /** @var \Tx_Oelib_Configuration $configuration */ $ configuration = GeneralUtility :: makeInstance ( \ Tx_Oelib_Configuration :: class ) ; $ configuration -> setData ( $ data ) ; return $ configuration ; }
Retrieves the configuration from TS Setup of the current page for a given
namespace.

@param string $namespace
the namespace of the configuration to retrieve, must not be empty

@return \Tx_Oelib_Configuration the TypoScript configuration for that namespace, might be empty
Retrieves the configuration from TS Setup of the current page for a given namespace .