public function getCssClass()
    {
        $cssClasses = [
            'news_category_'.$this->id,
            'category_'.$this->id,
        ];

        if ($this->cssClass) {
            $cssClasses[] = $this->cssClass;
        }

        return \implode(' ', \array_unique($cssClasses));
    }
public function getCssClass()
    {
        $cssClasses = [
            'news_category_'.$this->id,
            'category_'.$this->id,
        ];

        if ($this->cssClass) {
            $cssClasses[] = $this->cssClass;
        }

        return \implode(' ', \array_unique($cssClasses));
    }
public function getCssClass ( ) { $ cssClasses = [ 'news_category_' . $ this -> id , 'category_' . $ this -> id , ] ; if ( $ this -> cssClass ) { $ cssClasses [ ] = $ this -> cssClass ; } return \ implode ( ' ' , \ array_unique ( $ cssClasses ) ) ; }
Get the CSS class.

@return string
Get the CSS class .