Neos.Neos/Classes/Controller/Module/Administration/SitesController.php
public function deactivateDomainAction(Domain $domain)
    {
        $domain->setActive(false);
        $this->domainRepository->update($domain);
        $this->addFlashMessage('The domain "%s" has been deactivated.', 'Domain deactivated', Message::SEVERITY_OK, [htmlspecialchars($domain)], 1412373425);
        $this->unsetLastVisitedNodeAndRedirect('edit', null, null, ['site' => $domain->getSite()]);
    }
public function deactivateDomainAction(Domain $domain)
    {
        $domain->setActive(false);
        $this->domainRepository->update($domain);
        $this->addFlashMessage('The domain "%s" has been deactivated.', 'Domain deactivated', Message::SEVERITY_OK, [htmlspecialchars($domain)], 1412373425);
        $this->unsetLastVisitedNodeAndRedirect('edit', null, null, ['site' => $domain->getSite()]);
    }
public function deactivateDomainAction ( Domain $ domain ) { $ domain -> setActive ( false ) ; $ this -> domainRepository -> update ( $ domain ) ; $ this -> addFlashMessage ( 'The domain "%s" has been deactivated.' , 'Domain deactivated' , Message :: SEVERITY_OK , [ htmlspecialchars ( $ domain ) ] , 1412373425 ) ; $ this -> unsetLastVisitedNodeAndRedirect ( 'edit' , null , null , [ 'site' => $ domain -> getSite ( ) ] ) ; }
Deactivates a domain

@param Domain $domain Domain to deactivate
@Flow\IgnoreValidation("$domain")
@return void
Deactivates a domain