original_string: public function processTemplate($template, $vars = [])
      {
          // override the twig header vars for local resolution
          $this->grav->fireEvent('onTwigTemplateVariables');
          $vars += $this->twig_vars;
  
          try {
              $output = $this->twig->render($template, $vars);
          } catch (\Twig_Error_Loader $e) {
              throw new \RuntimeException($e->getRawMessage(), 404, $e);
          }
  
          return $output;
  
      }
code: public function processTemplate($template, $vars = [])
      {
          // override the twig header vars for local resolution
          $this->grav->fireEvent('onTwigTemplateVariables');
          $vars += $this->twig_vars;
  
          try {
              $output = $this->twig->render($template, $vars);
          } catch (\Twig_Error_Loader $e) {
              throw new \RuntimeException($e->getRawMessage(), 404, $e);
          }
  
          return $output;
  
      }
code_tokens: public function processTemplate ( $ template , $ vars = [ ] ) { // override the twig header vars for local resolution $ this -> grav -> fireEvent ( 'onTwigTemplateVariables' ) ; $ vars += $ this -> twig_vars ; try { $ output = $ this -> twig -> render ( $ template , $ vars ) ; } catch ( \ Twig_Error_Loader $ e ) { throw new \ RuntimeException ( $ e -> getRawMessage ( ) , 404 , $ e ) ; } return $ output ; }
docstring: Process a Twig template directly by using a template name
  and optional array of variables
  
  @param string $template template to render with
  @param array  $vars     Optional variables
  
  @return string
docstring_tokens: Process a Twig template directly by using a template name and optional array of variables