macgyer\yii2materializecss\widgets\Button::renderIcon PHP Method

renderIcon() protected method

Renders an icon.
See also: Icon::run
protected renderIcon ( ) : string
return string the rendered icon
    protected function renderIcon()
    {
        if (!$this->icon) {
            return '';
        }
        return Icon::widget(['name' => ArrayHelper::getValue($this->icon, 'name', null), 'position' => ArrayHelper::getValue($this->icon, 'position', null), 'options' => ArrayHelper::getValue($this->icon, 'options', [])]);
    }