original_string: 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);
      }
code: 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);
      }
code_tokens: 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 ) ; }
docstring: Generate the item CSS class.
  
  @param NewsCategoryModel $category
  
  @return string
docstring_tokens: Generate the item CSS class .