src/Twig/UrlExtension.php
public function urlFunction($route, array $params = []) {
        return $this->container['url_generator']->generate($route, $params, UrlGeneratorInterface::ABSOLUTE_URL);
    }
public function urlFunction($route, array $params = []) {
        return $this->container['url_generator']->generate($route, $params, UrlGeneratorInterface::ABSOLUTE_URL);
    }
public function urlFunction ( $ route , array $ params = [ ] ) { return $ this -> container [ 'url_generator' ] -> generate ( $ route , $ params , UrlGeneratorInterface :: ABSOLUTE_URL ) ; }
Generate absolute URL path.

@param string $route  Route name
@param array  $params Parameters

@return string
Generate absolute URL path .