public function executeAddEntityData($request) { $this->setResponseFormat(); $entity_id = $request->getParameter("entity_id"); $entity_ids = $request->getParameter("entity_ids"); $this->checkIds($entity_id); $this->checkIds($entity_ids); $data = EntityTable::getAddEntityAndRelsForMap($entity_id, $entity_ids); $data = NetworkMapTable::prepareData($data); return $this->renderText(json_encode($data)); }