Esempio n. 1
0
 /**
  * Render image.
  *
  * @param string      $imageName
  * @param ImageColumn $column
  *
  * @return string
  */
 private function renderImage($imageName, ImageColumn $column)
 {
     return $this->twig->render('SgDatatablesBundle:Helper:ii_render_image.html.twig', array('image_id' => 'sg_image_' . uniqid(rand(10000, 99999)), 'image_name' => $imageName, 'filter' => $column->getImagineFilter(), 'path' => $column->getRelativePath(), 'holder_url' => $column->getHolderUrl(), 'width' => $column->getHolderWidth(), 'height' => $column->getHolderHeight(), 'enlarge' => $column->getEnlarge()));
 }