original_string: public function onSubmit()
      {
          /*
           * Save or reset search term in session
           */
          $this->setActiveTerm(post($this->getName()));
  
          /*
           * Trigger class event, merge results as viewable array
           */
          $params = func_get_args();
          $result = $this->fireEvent('search.submit', [$params]);
          if ($result && is_array($result)) {
              return call_user_func_array('array_merge', $result);
          }
      }
code: public function onSubmit()
      {
          /*
           * Save or reset search term in session
           */
          $this->setActiveTerm(post($this->getName()));
  
          /*
           * Trigger class event, merge results as viewable array
           */
          $params = func_get_args();
          $result = $this->fireEvent('search.submit', [$params]);
          if ($result && is_array($result)) {
              return call_user_func_array('array_merge', $result);
          }
      }
code_tokens: public function onSubmit ( ) { /*
           * Save or reset search term in session
           */ $ this -> setActiveTerm ( post ( $ this -> getName ( ) ) ) ; /*
           * Trigger class event, merge results as viewable array
           */ $ params = func_get_args ( ) ; $ result = $ this -> fireEvent ( 'search.submit' , [ $ params ] ) ; if ( $ result && is_array ( $ result ) ) { return call_user_func_array ( 'array_merge' , $ result ) ; } }
docstring: Search field has been submitted.
docstring_tokens: Search field has been submitted .