public function renderHtml(\Twig_Environment $twig, AbstractDataTable $table, array $options = []) { $table->setContainer($this->container); $tableId = $table->getName(); if (isset($options['id'])) { $tableId = $options['id']; unset($options['id']); } return $twig->render('@VoelkelDataTables/table_' . $this->theme . '.html.twig', ['table' => $table, 'options' => $options, 'tableId' => $tableId]); }