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

@param Site $site Site to deactivate
@return void
Deactivates a site