/**
  * Prints a table with the given entities.
  */
 public function renderTable($args = array())
 {
     $array = array();
     $config = $this->fillModel($array);
     $array['deleteUrl'] = $this->fetchUrl($args, 'delete', $config->getDeleteRoute());
     $array['tableId'] = $config->getId();
     $array['transScope'] = $config->getTransScope();
     $array['views'] = $config->getViews();
     $array['frontendFramework'] = $config->getFrontendFramework();
     $array['frontendFrameworkName'] = FrontendFramework::toString($config->getFrontendFramework());
     return $this->render('twentystepsAutoTablesBundle:AutoTablesExtension:autoTable.html.twig', $array);
 }
 public function __construct($args)
 {
     $this->transScope = util::array_get($args['trans_scope'], 'messages');
     $this->dataTablesOptions = util::array_get($args['datatables_options'], '{}');
     $this->frontendFramework = FrontendFramework::fromString(util::array_get($args['frontend_framework'], FrontendFramework::toString(FrontendFramework::JQUERY_UI)));
 }