protected function generateItemCssClass(NewsCategoryModel $category)
    {
        $cssClasses = [$category->getCssClass()];

        // Add the trail class
        if (\in_array((int) $category->id, $this->manager->getTrailIds($category), true)) {
            $cssClasses[] = 'trail';
        }

        // Add the news trail class
        if (\in_array((int) $category->id, $this->currentNewsCategories, true)) {
            $cssClasses[] = 'news_trail';
        }

        return \implode(' ', $cssClasses);
    }
protected function generateItemCssClass(NewsCategoryModel $category)
    {
        $cssClasses = [$category->getCssClass()];

        // Add the trail class
        if (\in_array((int) $category->id, $this->manager->getTrailIds($category), true)) {
            $cssClasses[] = 'trail';
        }

        // Add the news trail class
        if (\in_array((int) $category->id, $this->currentNewsCategories, true)) {
            $cssClasses[] = 'news_trail';
        }

        return \implode(' ', $cssClasses);
    }
protected function generateItemCssClass ( NewsCategoryModel $ category ) { $ cssClasses = [ $ category -> getCssClass ( ) ] ; // Add the trail class if ( \ in_array ( ( int ) $ category -> id , $ this -> manager -> getTrailIds ( $ category ) , true ) ) { $ cssClasses [ ] = 'trail' ; } // Add the news trail class if ( \ in_array ( ( int ) $ category -> id , $ this -> currentNewsCategories , true ) ) { $ cssClasses [ ] = 'news_trail' ; } return \ implode ( ' ' , $ cssClasses ) ; }
Generate the item CSS class.

@param NewsCategoryModel $category

@return string
Generate the item CSS class .