ElggSite::disable PHP Method

disable() public method

Disable the site
public disable ( string $reason = "", boolean $recursive = true ) : boolean
$reason string Optional reason for disabling
$recursive boolean Recursively disable all contained entities?
return boolean
    public function disable($reason = "", $recursive = true)
    {
        global $CONFIG;
        if ($CONFIG->site->getGUID() == $this->guid) {
            throw new \SecurityException('You cannot disable the current site');
        }
        return parent::disable($reason, $recursive);
    }