original_string: public function generate()
      {
          if (TL_MODE === 'BE') {
              return parent::generate();
          }
  
          // Generate the list in related categories mode
          if ($this->news_relatedCategories) {
              return $this->generateRelated();
          }
  
          return parent::generate();
      }
code: public function generate()
      {
          if (TL_MODE === 'BE') {
              return parent::generate();
          }
  
          // Generate the list in related categories mode
          if ($this->news_relatedCategories) {
              return $this->generateRelated();
          }
  
          return parent::generate();
      }
code_tokens: public function generate ( ) { if ( TL_MODE === 'BE' ) { return parent :: generate ( ) ; } // Generate the list in related categories mode if ( $ this -> news_relatedCategories ) { return $ this -> generateRelated ( ) ; } return parent :: generate ( ) ; }
docstring: Set the flag to filter news by categories
  
  @return string
docstring_tokens: Set the flag to filter news by categories