FML/Script/Features/Toggle.php
public function setTogglingControl(Control $control)
    {
        $control->checkId();
        if ($control instanceof Scriptable) {
            $control->setScriptEvents(true);
        }
        $this->togglingControl = $control;
        return $this;
    }
public function setTogglingControl(Control $control)
    {
        $control->checkId();
        if ($control instanceof Scriptable) {
            $control->setScriptEvents(true);
        }
        $this->togglingControl = $control;
        return $this;
    }
public function setTogglingControl ( Control $ control ) { $ control -> checkId ( ) ; if ( $ control instanceof Scriptable ) { $ control -> setScriptEvents ( true ) ; } $ this -> togglingControl = $ control ; return $ this ; }
Set the toggling Control

@api
@param Control $control Toggling Control
@return static
Set the toggling Control