Gc\Component\TreeView::renderIcon PHP Method

renderIcon() protected static method

Render Icon
protected static renderIcon ( Gc\Component\IterableInterface $iterator ) : string
$iterator Gc\Component\IterableInterface Document
return string
    protected static function renderIcon(IterableInterface $iterator)
    {
        if ($iterator->getIcon() == 'folder') {
            $html = '<ins
                style="background:url(/media/icons/folder.gif) no-repeat scroll 0 0;"
                class="jstree-icon">&nbsp;</ins>';
        } else {
            $html = '<ins
                style="background:url(' . $iterator->getIcon() . ') no-repeat scroll 0 0;"
                class="jstree-icon">&nbsp;</ins>';
        }
        return $html;
    }