original_string: public function fromRoute($name, array $params = [])
      {
          $router = $this->getRouter();
          $route  = $router->get($name);
  
          return $route->assemble($params);
      }
code: public function fromRoute($name, array $params = [])
      {
          $router = $this->getRouter();
          $route  = $router->get($name);
  
          return $route->assemble($params);
      }
code_tokens: public function fromRoute ( $ name , array $ params = [ ] ) { $ router = $ this -> getRouter ( ) ; $ route = $ router -> get ( $ name ) ; return $ route -> assemble ( $ params ) ; }
docstring: Gets url from route.
  
  @param string $name   The route name
  @param array  $params Optional; the route parameters
  
  @return string The url
docstring_tokens: Gets url from route .