private function loadFormEntity($id, $locale)
    {
        $formEntity = $this->formRepository->loadById($id, $locale);

        if (!$formEntity) {
            return null;
        }

        $translation = $formEntity->getTranslation($locale);

        if (!$translation) {
            // No translation for this locale exists
            return null;
        }

        return $formEntity;
    }
private function loadFormEntity($id, $locale)
    {
        $formEntity = $this->formRepository->loadById($id, $locale);

        if (!$formEntity) {
            return null;
        }

        $translation = $formEntity->getTranslation($locale);

        if (!$translation) {
            // No translation for this locale exists
            return null;
        }

        return $formEntity;
    }
private function loadFormEntity ( $ id , $ locale ) { $ formEntity = $ this -> formRepository -> loadById ( $ id , $ locale ) ; if ( ! $ formEntity ) { return null ; } $ translation = $ formEntity -> getTranslation ( $ locale ) ; if ( ! $ translation ) { // No translation for this locale exists return null ; } return $ formEntity ; }
Load Form entity.

@param $id
@param $locale

@return Form|null
Load Form entity .