public function datatableFilterRender(Twig_Environment $twig, AbstractDatatableView $datatable, AbstractColumn $column, $loopIndex)
    {
        if ($filterProperty = $column->getFilter()->getProperty()) {
            $filterColumnId = $datatable->getColumnIdByColumnName($filterProperty);
        } else {
            $filterColumnId = $loopIndex;
        }

        return $twig->render($column->getFilter()->getTemplate(), array(
            'column' => $column,
            'filterColumnId' => $filterColumnId,
            'selectorId' => $loopIndex,
            'tableId' => $datatable->getName()
            )
        );
    }
public function datatableFilterRender(Twig_Environment $twig, AbstractDatatableView $datatable, AbstractColumn $column, $loopIndex)
    {
        if ($filterProperty = $column->getFilter()->getProperty()) {
            $filterColumnId = $datatable->getColumnIdByColumnName($filterProperty);
        } else {
            $filterColumnId = $loopIndex;
        }

        return $twig->render($column->getFilter()->getTemplate(), array(
            'column' => $column,
            'filterColumnId' => $filterColumnId,
            'selectorId' => $loopIndex,
            'tableId' => $datatable->getName()
            )
        );
    }
public function datatableFilterRender ( Twig_Environment $ twig , AbstractDatatableView $ datatable , AbstractColumn $ column , $ loopIndex ) { if ( $ filterProperty = $ column -> getFilter ( ) -> getProperty ( ) ) { $ filterColumnId = $ datatable -> getColumnIdByColumnName ( $ filterProperty ) ; } else { $ filterColumnId = $ loopIndex ; } return $ twig -> render ( $ column -> getFilter ( ) -> getTemplate ( ) , array ( 'column' => $ column , 'filterColumnId' => $ filterColumnId , 'selectorId' => $ loopIndex , 'tableId' => $ datatable -> getName ( ) ) ) ; }
Renders the custom datatable filter.

@param Twig_Environment      $twig
@param AbstractDatatableView $datatable
@param AbstractColumn        $column
@param integer               $loopIndex

@return mixed|string|void
Renders the custom datatable filter .