public static function getOptions(DataTablesWrapperInterface $dtWrapper) {

        $output = [];

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

        $output["ajax"]         = [];
        $output["ajax"]["type"] = $dtWrapper->getMethod();
        $output["ajax"]["url"]  = $dtWrapper->getUrl();
        $output["columns"]      = [];
        $output["order"]        = $dtWrapper->getOrder();
        $output["processing"]   = $dtWrapper->getProcessing();
        $output["serverSide"]   = $dtWrapper->getServerSide();

        foreach ($dtWrapper->getColumns() as $current) {
            $output["columns"][] = DataTablesNormalizer::normalizeColumn($current);
        }

        return $output;
    }