src/Html/Element/Button.php
public function icon($icon, $is_icon_only = true)
    {
        $this->setIcon($icon);
        ($is_icon_only) ? $this->enableIconOnly() : $this->disableIconOnly();
        return $this;
    }
public function icon($icon, $is_icon_only = true)
    {
        $this->setIcon($icon);
        ($is_icon_only) ? $this->enableIconOnly() : $this->disableIconOnly();
        return $this;
    }
public function icon ( $ icon , $ is_icon_only = true ) { $ this -> setIcon ( $ icon ) ; ( $ is_icon_only ) ? $ this -> enableIconOnly ( ) : $ this -> disableIconOnly ( ) ; return $ this ; }
Fast setting for icon

@param $icon
@param bool|true $is_icon_only
@return $this
Fast setting for icon