public function createContent($contentType, $fields, $parentLocationId) { $repository = $this->getRepository(); $languageCode = self::DEFAULT_LANGUAGE; $content = $this->createContentDraft($parentLocationId, $contentType, $fields, $languageCode); $content = $this->contentService->publishVersion($content->versionInfo); return $content->contentInfo->mainLocationId; }