kartik\tree\TreeView::renderCheckboxIcon PHP Méthode

renderCheckboxIcon() protected méthode

Renders the checkbox icon markup based on fontAwesome setting
protected renderCheckboxIcon ( boolean $checked = false ) : string
$checked boolean whether 'checked'
Résultat string
    protected function renderCheckboxIcon($checked = false)
    {
        $icon = $this->_iconPrefix . $this->getCheckboxIcon($checked);
        $options = $checked ? $this->checkedNodeOptions : $this->uncheckedNodeOptions;
        $label = ArrayHelper::remove($options, 'label', '<span class="' . $icon . '"></span>');
        $action = $checked ? 'checked' : 'unchecked';
        return Html::tag('span', $label, ['class' => "kv-node-{$action}"]);
    }