protected function getFilter(Request $request)
    {
        if ($filter_type = $this->getEntityManager()->getFilterType($request)) {
            return $this->createForm($filter_type);
        }
    }
protected function getFilter(Request $request)
    {
        if ($filter_type = $this->getEntityManager()->getFilterType($request)) {
            return $this->createForm($filter_type);
        }
    }
protected function getFilter ( Request $ request ) { if ( $ filter_type = $ this -> getEntityManager ( ) -> getFilterType ( $ request ) ) { return $ this -> createForm ( $ filter_type ) ; } }
Returns a form that will be used by the `index` action to create a view
which is then passed to the `index.html.twig` template as a parameter
named `filter`.

@param Request $request the current request
@return Symfony\Component\Form\FormInterface|null a form
@uses EntityManagerInterface::getFilterType
Returns a form that will be used by the index action to create a view which is then passed to the index . html . twig template as a parameter named filter .