protected function renderNodeIcon($icon, $iconType, $child = true)
{
if (!empty($icon)) {
$options = $child ? $this->childNodeIconOptions : $this->parentNodeIconOptions;
$css = $this->_iconPrefix . $icon;
$icon = $iconType == self::ICON_CSS ? Html::tag('span', '', ['class' => $css]) : $icon;
return Html::tag('span', $icon, $options);
}
$content = $this->defaultParentNodeIcon . $this->defaultParentNodeOpenIcon;
return Html::tag('span', $content, $this->parentNodeIconOptions) . Html::tag('span', $this->defaultChildNodeIcon, $this->childNodeIconOptions);
}