private function loadTypoScript(): string
    {
        if (null === $this->options['cache_dir']) {
            return $this->concatenateTypoScript();
        }

        $cache = $this->getConfigCacheFactory()
            ->cache($this->options['cache_dir'].'/content_elements.typoscript',
                function (ConfigCacheInterface $cache) {
                    $cache->write(
                        $this->concatenateTypoScript(),
                        $this->getRenderDefinitionCollection()->getResources()
                    );
                }
            )
        ;

        return \file_get_contents($cache->getPath());
    }
private function loadTypoScript(): string
    {
        if (null === $this->options['cache_dir']) {
            return $this->concatenateTypoScript();
        }

        $cache = $this->getConfigCacheFactory()
            ->cache($this->options['cache_dir'].'/content_elements.typoscript',
                function (ConfigCacheInterface $cache) {
                    $cache->write(
                        $this->concatenateTypoScript(),
                        $this->getRenderDefinitionCollection()->getResources()
                    );
                }
            )
        ;

        return \file_get_contents($cache->getPath());
    }
private function loadTypoScript ( ) : string { if ( null === $ this -> options [ 'cache_dir' ] ) { return $ this -> concatenateTypoScript ( ) ; } $ cache = $ this -> getConfigCacheFactory ( ) -> cache ( $ this -> options [ 'cache_dir' ] . '/content_elements.typoscript' , function ( ConfigCacheInterface $ cache ) { $ cache -> write ( $ this -> concatenateTypoScript ( ) , $ this -> getRenderDefinitionCollection ( ) -> getResources ( ) ) ; } ) ; return \ file_get_contents ( $ cache -> getPath ( ) ) ; }
Load the TypoScript code for the content element render definitions
itself without adding them to the template.

@throws \Exception

@return string
Load the TypoScript code for the content element render definitions itself without adding them to the template .