Neos.Neos/Classes/Controller/Module/Administration/SitesController.php
public function editAction(Site $site)
    {
        try {
            $sitePackage = $this->packageManager->getPackage($site->getSiteResourcesPackageKey());
        } catch (\Exception $e) {
            $this->addFlashMessage('The site package with key "%s" was not found.', 'Site package not found', Message::SEVERITY_ERROR, [htmlspecialchars($site->getSiteResourcesPackageKey())]);
        }

        $this->view->assignMultiple([
            'site' => $site,
            'sitePackage' => isset($sitePackage) ? $sitePackage : [],
            'domains' => $this->domainRepository->findBySite($site),
            'assetCollections' => $this->assetCollectionRepository->findAll()
        ]);
    }
public function editAction(Site $site)
    {
        try {
            $sitePackage = $this->packageManager->getPackage($site->getSiteResourcesPackageKey());
        } catch (\Exception $e) {
            $this->addFlashMessage('The site package with key "%s" was not found.', 'Site package not found', Message::SEVERITY_ERROR, [htmlspecialchars($site->getSiteResourcesPackageKey())]);
        }

        $this->view->assignMultiple([
            'site' => $site,
            'sitePackage' => isset($sitePackage) ? $sitePackage : [],
            'domains' => $this->domainRepository->findBySite($site),
            'assetCollections' => $this->assetCollectionRepository->findAll()
        ]);
    }
public function editAction ( Site $ site ) { try { $ sitePackage = $ this -> packageManager -> getPackage ( $ site -> getSiteResourcesPackageKey ( ) ) ; } catch ( \ Exception $ e ) { $ this -> addFlashMessage ( 'The site package with key "%s" was not found.' , 'Site package not found' , Message :: SEVERITY_ERROR , [ htmlspecialchars ( $ site -> getSiteResourcesPackageKey ( ) ) ] ) ; } $ this -> view -> assignMultiple ( [ 'site' => $ site , 'sitePackage' => isset ( $ sitePackage ) ? $ sitePackage : [ ] , 'domains' => $ this -> domainRepository -> findBySite ( $ site ) , 'assetCollections' => $ this -> assetCollectionRepository -> findAll ( ) ] ) ; }
A edit view for a site and its settings.

@param Site $site Site to view
@Flow\IgnoreValidation("$site")
@return void
A edit view for a site and its settings .