Content/Types/FormSelect.php
public function getContentData(PropertyInterface $property)
    {
        $id = (int) $property->getValue();

        if (!$id) {
            return;
        }

        if (!isset($property->getParams()['type'])) {
            throw new MissingOptionsException(
                'SuluFormBundle: The parameter "type" is missing on "form_select" content-type.',
                []
            );
        }

        $type = $property->getParams()['type']->getValue();

        /** @var PageBridge $structure */
        $structure = $property->getStructure();

        /** @var FormInterface $form */
        $form = $this->formBuilder->build(
            $id,
            $type,
            $structure->getUuid(),
            $structure->getLanguageCode(),
            $property->getName()
        );

        if (!$form) {
            $form = $this->loadShadowForm($property, $id, $type);

            if (!$form) {
                return;
            }
        }

        return $form->createView();
    }
public function getContentData(PropertyInterface $property)
    {
        $id = (int) $property->getValue();

        if (!$id) {
            return;
        }

        if (!isset($property->getParams()['type'])) {
            throw new MissingOptionsException(
                'SuluFormBundle: The parameter "type" is missing on "form_select" content-type.',
                []
            );
        }

        $type = $property->getParams()['type']->getValue();

        /** @var PageBridge $structure */
        $structure = $property->getStructure();

        /** @var FormInterface $form */
        $form = $this->formBuilder->build(
            $id,
            $type,
            $structure->getUuid(),
            $structure->getLanguageCode(),
            $property->getName()
        );

        if (!$form) {
            $form = $this->loadShadowForm($property, $id, $type);

            if (!$form) {
                return;
            }
        }

        return $form->createView();
    }
{@inheritdoc}