Neos.Neos/Classes/Controller/Module/Administration/SitesController.php
public function newSiteAction(Site $site = null)
    {
        $sitePackages = $this->packageManager->getFilteredPackages('available', null, 'neos-site');
        $documentNodeTypes = $this->nodeTypeManager->getSubNodeTypes('Neos.Neos:Document', false);
        $this->view->assignMultiple([
            'sitePackages' => $sitePackages,
            'documentNodeTypes' => $documentNodeTypes,
            'site' => $site,
            'generatorServiceIsAvailable' => $this->packageManager->isPackageAvailable('Neos.SiteKickstarter')
        ]);
    }
public function newSiteAction(Site $site = null)
    {
        $sitePackages = $this->packageManager->getFilteredPackages('available', null, 'neos-site');
        $documentNodeTypes = $this->nodeTypeManager->getSubNodeTypes('Neos.Neos:Document', false);
        $this->view->assignMultiple([
            'sitePackages' => $sitePackages,
            'documentNodeTypes' => $documentNodeTypes,
            'site' => $site,
            'generatorServiceIsAvailable' => $this->packageManager->isPackageAvailable('Neos.SiteKickstarter')
        ]);
    }
public function newSiteAction ( Site $ site = null ) { $ sitePackages = $ this -> packageManager -> getFilteredPackages ( 'available' , null , 'neos-site' ) ; $ documentNodeTypes = $ this -> nodeTypeManager -> getSubNodeTypes ( 'Neos.Neos:Document' , false ) ; $ this -> view -> assignMultiple ( [ 'sitePackages' => $ sitePackages , 'documentNodeTypes' => $ documentNodeTypes , 'site' => $ site , 'generatorServiceIsAvailable' => $ this -> packageManager -> isPackageAvailable ( 'Neos.SiteKickstarter' ) ] ) ; }
Create a new site form.

@param Site $site Site to create
@Flow\IgnoreValidation("$site")
@return void
Create a new site form .