Neos.Neos/Classes/Controller/Module/Administration/SitesController.php
public function activateSiteAction(Site $site)
    {
        $site->setState($site::STATE_ONLINE);
        $this->siteRepository->update($site);
        $this->addFlashMessage('The site "%s" has been activated.', 'Site activated', Message::SEVERITY_OK, [htmlspecialchars($site->getName())], 1412372881);
        $this->unsetLastVisitedNodeAndRedirect('index');
    }
public function activateSiteAction(Site $site)
    {
        $site->setState($site::STATE_ONLINE);
        $this->siteRepository->update($site);
        $this->addFlashMessage('The site "%s" has been activated.', 'Site activated', Message::SEVERITY_OK, [htmlspecialchars($site->getName())], 1412372881);
        $this->unsetLastVisitedNodeAndRedirect('index');
    }
public function activateSiteAction ( Site $ site ) { $ site -> setState ( $ site :: STATE_ONLINE ) ; $ this -> siteRepository -> update ( $ site ) ; $ this -> addFlashMessage ( 'The site "%s" has been activated.' , 'Site activated' , Message :: SEVERITY_OK , [ htmlspecialchars ( $ site -> getName ( ) ) ] , 1412372881 ) ; $ this -> unsetLastVisitedNodeAndRedirect ( 'index' ) ; }
Activates a site

@param Site $site Site to activate
@return void
Activates a site