protected function getDataTablesWrapper(DataTablesProviderInterface $dtProvider) {

        $url = $this->getDataTablesURL($dtProvider);

        $dtWrapper = DataTablesFactory::newWrapper($url, $dtProvider, $this->getKernelEventListener()->getUser());

        foreach ($dtProvider->getColumns() as $dtColumn) {

            $this->getLogger()->debug(sprintf("DataTables provider \"%s\" add a column \"%s\"", $dtProvider->getName(), $dtColumn->getData()));

            $dtWrapper->addColumn($dtColumn);
        }

        if (null !== $dtProvider->getOptions()) {
            $dtWrapper->setOptions($dtProvider->getOptions());
        }

        return $dtWrapper;
    }
protected function getDataTablesWrapper(DataTablesProviderInterface $dtProvider) {

        $url = $this->getDataTablesURL($dtProvider);

        $dtWrapper = DataTablesFactory::newWrapper($url, $dtProvider, $this->getKernelEventListener()->getUser());

        foreach ($dtProvider->getColumns() as $dtColumn) {

            $this->getLogger()->debug(sprintf("DataTables provider \"%s\" add a column \"%s\"", $dtProvider->getName(), $dtColumn->getData()));

            $dtWrapper->addColumn($dtColumn);
        }

        if (null !== $dtProvider->getOptions()) {
            $dtWrapper->setOptions($dtProvider->getOptions());
        }

        return $dtWrapper;
    }
protected function getDataTablesWrapper ( DataTablesProviderInterface $ dtProvider ) { $ url = $ this -> getDataTablesURL ( $ dtProvider ) ; $ dtWrapper = DataTablesFactory :: newWrapper ( $ url , $ dtProvider , $ this -> getKernelEventListener ( ) -> getUser ( ) ) ; foreach ( $ dtProvider -> getColumns ( ) as $ dtColumn ) { $ this -> getLogger ( ) -> debug ( sprintf ( "DataTables provider \"%s\" add a column \"%s\"" , $ dtProvider -> getName ( ) , $ dtColumn -> getData ( ) ) ) ; $ dtWrapper -> addColumn ( $ dtColumn ) ; } if ( null !== $ dtProvider -> getOptions ( ) ) { $ dtWrapper -> setOptions ( $ dtProvider -> getOptions ( ) ) ; } return $ dtWrapper ; }
Get a wrapper.

@param DataTablesProviderInterface $dtProvider The provider.
@return DataTablesWrapperInterface Returns the wrapper.
Get a wrapper .