original_string: public function getCmsCategories()
      {
          $categories = array('' => 'No category');
  
          $results = $this->getEventManager()
              ->trigger(__FUNCTION__, $this, array(
              'categories' => $categories
              ))
              ->last();
  
          if ($results) {
              $categories = $results;
          }
  
          return $categories;
      }
code: public function getCmsCategories()
      {
          $categories = array('' => 'No category');
  
          $results = $this->getEventManager()
              ->trigger(__FUNCTION__, $this, array(
              'categories' => $categories
              ))
              ->last();
  
          if ($results) {
              $categories = $results;
          }
  
          return $categories;
      }
code_tokens: public function getCmsCategories ( ) { $ categories = array ( '' => 'No category' ) ; $ results = $ this -> getEventManager ( ) -> trigger ( __FUNCTION__ , $ this , array ( 'categories' => $ categories ) ) -> last ( ) ; if ( $ results ) { $ categories = $ results ; } return $ categories ; }
docstring: An event is triggered so that the modules wishing to associate a category to a CMS page
  can add their own categories without adherence between the 2 modules
  
  @return array
docstring_tokens: An event is triggered so that the modules wishing to associate a category to a CMS page can add their own categories without adherence between the 2 modules