macgyer\yii2materializecss\widgets\form\SwitchButton::run PHP Method

run() public method

Executes the widget.
public run ( ) : string
return string the result of widget execution to be outputted.
    public function run()
    {
        $tag = ArrayHelper::remove($this->options, 'tag', 'div');
        $html = Html::beginTag($tag, $this->options);
        $html .= $this->renderSwitch();
        $html .= Html::endTag($tag);
        return $html;
    }