|
@@ 6063-6073 (lines=11) @@
|
| 6060 |
|
/** @var Content[] $contents */ |
| 6061 |
|
$contents = []; |
| 6062 |
|
|
| 6063 |
|
foreach ($contentNames as $contentName) { |
| 6064 |
|
$contentCreate = $this->contentService->newContentCreateStruct($contentType, 'eng-US'); |
| 6065 |
|
$contentCreate->setField('name', $contentName); |
| 6066 |
|
|
| 6067 |
|
$content = $this->contentService->createContent($contentCreate, [$parentLocation]); |
| 6068 |
|
$contents[] = $publishedContent = $this->contentService->publishVersion($content->versionInfo); |
| 6069 |
|
|
| 6070 |
|
$parentLocation = $this->locationService->newLocationCreateStruct( |
| 6071 |
|
$this->generateId('location', $publishedContent->contentInfo->mainLocationId) |
| 6072 |
|
); |
| 6073 |
|
} |
| 6074 |
|
|
| 6075 |
|
$this->contentService->hideContent($contents[0]->contentInfo); |
| 6076 |
|
$this->contentService->hideContent($contents[2]->contentInfo); |
|
@@ 6121-6131 (lines=11) @@
|
| 6118 |
|
/** @var Content[] $contents */ |
| 6119 |
|
$contents = []; |
| 6120 |
|
|
| 6121 |
|
foreach ($contentNames as $contentName) { |
| 6122 |
|
$contentCreate = $this->contentService->newContentCreateStruct($contentType, 'eng-US'); |
| 6123 |
|
$contentCreate->setField('name', $contentName); |
| 6124 |
|
|
| 6125 |
|
$content = $this->contentService->createContent($contentCreate, [$parentLocation]); |
| 6126 |
|
$contents[] = $publishedContent = $this->contentService->publishVersion($content->versionInfo); |
| 6127 |
|
|
| 6128 |
|
$parentLocation = $this->locationService->newLocationCreateStruct( |
| 6129 |
|
$this->generateId('location', $publishedContent->contentInfo->mainLocationId) |
| 6130 |
|
); |
| 6131 |
|
} |
| 6132 |
|
|
| 6133 |
|
$this->contentService->hideContent($contents[0]->contentInfo); |
| 6134 |
|
$this->contentService->hideContent($contents[2]->contentInfo); |