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

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

@return string
Generate relative URL path .