/** * Executes the widget. * @return string the result of widget execution to be outputted. * @uses [[renderIcon]] */ public function run() { if ($this->label !== false) { $label = $this->encodeLabel ? Html::encode($this->label) : $this->label; } else { $label = ''; } $content = $this->renderIcon() . $label; return $this->tagName === 'button' ? Html::button($content, $this->options) : Html::tag($this->tagName, $content, $this->options); }