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

@api
@param bool $onlyShow If it should only show the Control but not toggle
@return static
Set Show Only