lib/helpers/Url.php
function getToRoute(): \Closure {
    return function($value, \Mustache_LambdaHelper $helper) {
      $args = $this->parseArguments($helper->render($value), 'route', ['scheme' => false]);
      return UrlHelper::toRoute($args['route'], $args['scheme']);
    };
  }
function getToRoute(): \Closure {
    return function($value, \Mustache_LambdaHelper $helper) {
      $args = $this->parseArguments($helper->render($value), 'route', ['scheme' => false]);
      return UrlHelper::toRoute($args['route'], $args['scheme']);
    };
  }
function getToRoute ( ) : \ Closure { return function ( $ value , \ Mustache_LambdaHelper $ helper ) { $ args = $ this -> parseArguments ( $ helper -> render ( $ value ) , 'route' , [ 'scheme' => false ] ) ; return UrlHelper :: toRoute ( $ args [ 'route' ] , $ args [ 'scheme' ] ) ; } ; }
Returns a function creating a URL for the given route.
@return \Closure A function creating a URL for the given route.
Returns a function creating a URL for the given route .