FML/Script/Features/Toggle.php
public function setOnlyHide($onlyHide)
    {
        $this->onlyHide = (bool)$onlyHide;
        if ($this->onlyHide) {
            $this->onlyShow = null;
        }
        return $this;
    }
public function setOnlyHide($onlyHide)
    {
        $this->onlyHide = (bool)$onlyHide;
        if ($this->onlyHide) {
            $this->onlyShow = null;
        }
        return $this;
    }
public function setOnlyHide ( $ onlyHide ) { $ this -> onlyHide = ( bool ) $ onlyHide ; if ( $ this -> onlyHide ) { $ this -> onlyShow = null ; } return $ this ; }
Set Hide Only

@api
@param bool $onlyHide If it should only hide the Control but not toggle
@return static
Set Hide Only