Get a definition of the given form

@param $id

@return JsonResponse
559796
public function getFormAction($id)
    {
        /** @var Form $form */
        $form = $this->get('opifer.form.form_manager')->getRepository()->find($id);

        if (!$form) {
            throw $this->createNotFoundException('The form could not be found');
        }

        /** @var Post $post */
        $post = $this->get('opifer.eav.eav_manager')->initializeEntity($form->getSchema());
        $postForm = $this->createForm(PostType::class, $post, ['form_id' => $id]);

        $definition = $this->get('liform')->transform($postForm);

        /** @var CsrfTokenManagerInterface $csrf */
        $csrf = $this->get('security.csrf.token_manager');
        $token = $csrf->refreshToken($form->getName());

        // We're stuck with a legacy form structure here, which we'd like to hide on the API.
        $fields = $definition['properties']['valueset']['properties']['namedvalues']['properties'];
        $fields['_token'] = [
            'widget' => 'hidden',
            'value' => $token->getValue()
        ];

        return new JsonResponse($fields);
    }
1273171
public function getParameterByID($id)
    {
        $param = current(array_filter($this->params, function (Param $param) use ($id) {
            return ($param->id === $id);
        }));

        return ($param) ? $param : null;
    }
773756
public function cgetAction($id, Request $request)
    {
        $formatOptions = $this->getFormatOptionsManager()->getAll($id);

        return $this->handleView($this->view(count($formatOptions) > 0 ? $formatOptions : new \stdClass()));
    }
142015
public function get($id) {
		$result = $this->getBackend()->get($id);
		
		if ($result !== null) {
			return json_decode($result);
		}
	}
533513
public function getPropertyDefinition($id)
    {
        return (isset($this->propertyDefinitions[$id]) ? $this->propertyDefinitions[$id] : null);
    }
283612
public function getAction($id)
    {
        $view = $this->responseGetById(
            $id,
            function($id) {
                return $this->getManager()->findById($id);
            }
        );

        $context = new Context();
        $context->setGroups(['partialTag']);
        $view->setContext($context);

        return $this->handleView($view);
    }
469541
public function get($id)
    {
        if (!is_string($id)) {
            throw new ContainerException('$id must be a string');
        }

        if (!isset($this->definitions[$id])) {
            throw new NotFoundException("Unresolvable ".$id);
        }

        return $this->definitions[$id];
    }
1155300
public function getCard($id)
    {
        return $this->auth(function () use ($id) {
            $data = json_encode([
                'card_id' => $id,
            ]);

            return $this->http->postJson($this->baseUrl . 'card/get?access_token=' . $this->accessToken, $data);
        });
    }
162045
public function getAction($id)
    {
        $find = function($id) {
            return $this->getUserManager()->getUserById($id);
        };

        $view = $this->responseGetById($id, $find);

        $this->addSerializationGroups($view);

        return $this->handleView($view);
    }
685226
public function get($id)
    {
        return $this->_sendPayload(
            $this->_getService($this->_pageServiceKey)->getTemplateLayout($id)
        );
    }
395495
public function getAction($id)
    {
        $find = function($id) {
            /** @var Group $group */
            $group = $this->getDoctrine()
                ->getRepository(static::$entityName)
                ->findGroupById($id);

            return $group;
        };

        $view = $this->responseGetById($id, $find);

        return $this->handleView($view);
    }
1233860
public function getDefinition($id)
    {
        $id = (string) $id;

        if (!isset($this->definitions[$id])) {
            throw new ServiceNotFoundException($id);
        }

        return $this->definitions[$id];
    }
75039
public function getToken($id)
    {
        $result = $this->request('GET', '/tokens/' . $id);

        return $this->objectConverter->convert($result);
    }
687717
public function parent($id){
		$geo = Geo::find($id)->getParent();
		$this->applyFilter($geo);
		return \Response::json($geo);
	}
266313
public function getTemplateId(string $id)
    {
        $url = self::GET_ID.$this->access_token;
        $data = ['template_id_short' => $id];
        $request = json_encode($data);
        $json = $this->curl->post($url, $request);

        return $json;
    }
1269705
public function get($id)
	{
		$this->getResponse()
			->setStatusCode(Response::STATUS_CODE_200);
		
		$classifiedService = $this->getServiceLocator()->get('document.service.classified');
		
		try {
			$data = $classifiedService->get($id);
		} catch(\Exception $e) {
			$this->getResponse()
				->setStatusCode(Response::STATUS_CODE_500);
			$data = new \StdClass();
		}
		
		return new JsonModel(array(
			'data' => $data
		));
	}
129257
public function getClientDetailsById($id)
	{
		$database = \App::get('db');

		$sql = "SELECT * FROM `#__developer_applications`
				WHERE `id`=" . $database->quote($id);
		$database->setQuery($sql);
		return $database->loadAssoc();
	}