/**
  * Get query.
  *
  * @param DataTableViewInterface $dataTableView
  * @param $disabledCoreSearch
  *
  * @return DataTableQuery
  */
 public function getQueryFrom(DataTableViewInterface $dataTableView, array $disabledCoreSearch = null)
 {
     $type = $dataTableView->getAjax()->getType();
     $parameterBag = null;
     if ('GET' === strtoupper($type)) {
         $parameterBag = $this->request->query;
     }
     if ('POST' === strtoupper($type)) {
         $parameterBag = $this->request->request;
     }
     $params = $parameterBag->all();
     $query = new DataTableQuery($this->serializer, $params, $dataTableView, $disabledCoreSearch);
     return $query;
 }
 /**
  * Set the line formatter function.
  *
  * @return $this
  */
 private function setLineFormatter()
 {
     $this->lineFormatter = $this->datatableView->getLineFormatter();
     return $this;
 }