Neos.SiteKickstarter/Classes/Service/GeneratorService.php
protected function generateSitesPageFusion($packageKey, $siteName)
    {
        $templatePathAndFilename = 'resource://Neos.SiteKickstarter/Private/Generator/Fusion/NodeTypes/Pages/Page.fusion';

        $contextVariables = [];
        $contextVariables['packageKey'] = $packageKey;
        $contextVariables['siteName'] = $siteName;
        $packageKeyDomainPart = substr(strrchr($packageKey, '.'), 1) ?: $packageKey;
        $contextVariables['siteNodeName'] = $packageKeyDomainPart;

        $fileContent = $this->renderSimpleTemplate($templatePathAndFilename, $contextVariables);

        $sitesPageFusionPathAndFilename = $this->packageManager->getPackage($packageKey)->getResourcesPath() . 'Private/Fusion/NodeTypes/Page.fusion';
        $this->generateFile($sitesPageFusionPathAndFilename, $fileContent);
    }
protected function generateSitesPageFusion($packageKey, $siteName)
    {
        $templatePathAndFilename = 'resource://Neos.SiteKickstarter/Private/Generator/Fusion/NodeTypes/Pages/Page.fusion';

        $contextVariables = [];
        $contextVariables['packageKey'] = $packageKey;
        $contextVariables['siteName'] = $siteName;
        $packageKeyDomainPart = substr(strrchr($packageKey, '.'), 1) ?: $packageKey;
        $contextVariables['siteNodeName'] = $packageKeyDomainPart;

        $fileContent = $this->renderSimpleTemplate($templatePathAndFilename, $contextVariables);

        $sitesPageFusionPathAndFilename = $this->packageManager->getPackage($packageKey)->getResourcesPath() . 'Private/Fusion/NodeTypes/Page.fusion';
        $this->generateFile($sitesPageFusionPathAndFilename, $fileContent);
    }
protected function generateSitesPageFusion ( $ packageKey , $ siteName ) { $ templatePathAndFilename = 'resource://Neos.SiteKickstarter/Private/Generator/Fusion/NodeTypes/Pages/Page.fusion' ; $ contextVariables = [ ] ; $ contextVariables [ 'packageKey' ] = $ packageKey ; $ contextVariables [ 'siteName' ] = $ siteName ; $ packageKeyDomainPart = substr ( strrchr ( $ packageKey , '.' ) , 1 ) ? : $ packageKey ; $ contextVariables [ 'siteNodeName' ] = $ packageKeyDomainPart ; $ fileContent = $ this -> renderSimpleTemplate ( $ templatePathAndFilename , $ contextVariables ) ; $ sitesPageFusionPathAndFilename = $ this -> packageManager -> getPackage ( $ packageKey ) -> getResourcesPath ( ) . 'Private/Fusion/NodeTypes/Page.fusion' ; $ this -> generateFile ( $ sitesPageFusionPathAndFilename , $ fileContent ) ; }
Generate basic Fusion documentNode file.

@param string $packageKey
@param string $siteName
@return void
Generate basic Fusion documentNode file .