kartik\grid\ExpandRowColumn::getIcon PHP 메소드

getIcon() 보호된 메소드

Get icon indicator
protected getIcon ( string $type ) : string
$type string one of `expand` or `collapse`
리턴 string the icon indicator markup
    protected function getIcon($type)
    {
        $setting = "{$type}Icon";
        if (!empty($this->{$setting})) {
            return $this->{$setting};
        }
        $bs = $this->grid->bootstrap;
        if ($type === 'expand') {
            return $bs ? GridView::ICON_EXPAND : '+';
        }
        if ($type === 'collapse') {
            return $bs ? GridView::ICON_COLLAPSE : '-';
        }
        return null;
    }