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

        if (!$id) {
            return [];
        }

        $locale = $property->getStructure()->getLanguageCode();

        $formEntity = $this->formRepository->loadById($id, $locale);

        if (!$formEntity) {
            return [];
        }

        return [
            'entity' => $formEntity->serializeForLocale($locale),
        ];
    }
public function getViewData(PropertyInterface $property)
    {
        $id = (int) $property->getValue();

        if (!$id) {
            return [];
        }

        $locale = $property->getStructure()->getLanguageCode();

        $formEntity = $this->formRepository->loadById($id, $locale);

        if (!$formEntity) {
            return [];
        }

        return [
            'entity' => $formEntity->serializeForLocale($locale),
        ];
    }
{@inheritdoc}