src/Controller/CRUDController.php
public function renderWithExtraParams($view, array $parameters = [], Response $response = null)
    {
        if (!$this->isXmlHttpRequest()) {
            $parameters['breadcrumbs_builder'] = $this->get('sonata.admin.breadcrumbs_builder');
        }
        $parameters['admin'] = $parameters['admin'] ??
            $this->admin;

        $parameters['base_template'] = $parameters['base_template'] ??
            $this->getBaseTemplate();

        $parameters['admin_pool'] = $this->get('sonata.admin.pool');

        //NEXT_MAJOR: Remove method alias and use $this->render() directly.
        return $this->originalRender($view, $parameters, $response);
    }
public function renderWithExtraParams($view, array $parameters = [], Response $response = null)
    {
        if (!$this->isXmlHttpRequest()) {
            $parameters['breadcrumbs_builder'] = $this->get('sonata.admin.breadcrumbs_builder');
        }
        $parameters['admin'] = $parameters['admin'] ??
            $this->admin;

        $parameters['base_template'] = $parameters['base_template'] ??
            $this->getBaseTemplate();

        $parameters['admin_pool'] = $this->get('sonata.admin.pool');

        //NEXT_MAJOR: Remove method alias and use $this->render() directly.
        return $this->originalRender($view, $parameters, $response);
    }
public function renderWithExtraParams ( $ view , array $ parameters = [ ] , Response $ response = null ) { if ( ! $ this -> isXmlHttpRequest ( ) ) { $ parameters [ 'breadcrumbs_builder' ] = $ this -> get ( 'sonata.admin.breadcrumbs_builder' ) ; } $ parameters [ 'admin' ] = $ parameters [ 'admin' ] ?? $ this -> admin ; $ parameters [ 'base_template' ] = $ parameters [ 'base_template' ] ?? $ this -> getBaseTemplate ( ) ; $ parameters [ 'admin_pool' ] = $ this -> get ( 'sonata.admin.pool' ) ; //NEXT_MAJOR: Remove method alias and use $this->render() directly. return $ this -> originalRender ( $ view , $ parameters , $ response ) ; }
Renders a view while passing mandatory parameters on to the template.

@param string $view The view name

@return Response A Response instance
Renders a view while passing mandatory parameters on to the template .