public function getIcon($tag = 'i')
    {
        $icon = array_get($this->properties, 'icon', null);

        if (is_null($icon)) return '';

        return "<$tag " . MenuItemAttributes::make(['class' => $icon])->render() . "></$tag>";
    }
public function getIcon($tag = 'i')
    {
        $icon = array_get($this->properties, 'icon', null);

        if (is_null($icon)) return '';

        return "<$tag " . MenuItemAttributes::make(['class' => $icon])->render() . "></$tag>";
    }
public function getIcon ( $ tag = 'i' ) { $ icon = array_get ( $ this -> properties , 'icon' , null ) ; if ( is_null ( $ icon ) ) return '' ; return "<$tag " . MenuItemAttributes :: make ( [ 'class' => $ icon ] ) -> render ( ) . "></$tag>" ; }
Get the menu item icon.

@param  string  $tag

@return string
Get the menu item icon .