/**
* Build a HTML link. $options holds all link parameters
* like "alt, class" and so on. $title can also be an image
* if required.
*
* @param array $params - url query params
* @param string $route
* @param string $title
* @param array $options
* @return string
*/
private function buildLink($params, $route, $title, $options = array())
{
$options['href'] = $this->routerHelper->generate($route, $params, $options['absolute']);
unset($options['absolute']);
if (!isset($options['title'])) {
$options['title'] = $title;
}
return $this->engine->render('KnpPaginatorBundle:Pagination:sortable_link.html.twig', array('options' => $options, 'title' => $title));
}