original_string: public function addTwigFunction($name, callable $function, array $options = [])
      {
          $twigfunction = new \Twig_SimpleFunction($name, $function, $options);
  
          $this->twig->addFunction($twigfunction);
      }
code: public function addTwigFunction($name, callable $function, array $options = [])
      {
          $twigfunction = new \Twig_SimpleFunction($name, $function, $options);
  
          $this->twig->addFunction($twigfunction);
      }
code_tokens: public function addTwigFunction ( $ name , callable $ function , array $ options = [ ] ) { $ twigfunction = new \ Twig_SimpleFunction ( $ name , $ function , $ options ) ; $ this -> twig -> addFunction ( $ twigfunction ) ; }
docstring: Adds a new Twig function.
  
  @see http://twig.sensiolabs.org/doc/advanced.html#functions Twig documentation
  
  @param string   $name     Name of filter
  @param callable $function Filter implementation
  @param array    $options
docstring_tokens: Adds a new Twig function .