|
@@ 6029-6039 (lines=11) @@
|
| 6026 |
|
/** @var Content[] $contents */ |
| 6027 |
|
$contents = []; |
| 6028 |
|
|
| 6029 |
|
foreach ($contentNames as $contentName) { |
| 6030 |
|
$contentCreate = $this->contentService->newContentCreateStruct($contentType, 'eng-US'); |
| 6031 |
|
$contentCreate->setField('name', $contentName); |
| 6032 |
|
|
| 6033 |
|
$content = $this->contentService->createContent($contentCreate, [$parentLocation]); |
| 6034 |
|
$contents[] = $publishedContent = $this->contentService->publishVersion($content->versionInfo); |
| 6035 |
|
|
| 6036 |
|
$parentLocation = $this->locationService->newLocationCreateStruct( |
| 6037 |
|
$this->generateId('location', $publishedContent->contentInfo->mainLocationId) |
| 6038 |
|
); |
| 6039 |
|
} |
| 6040 |
|
|
| 6041 |
|
$this->contentService->hideContent($contents[0]->contentInfo); |
| 6042 |
|
$this->contentService->hideContent($contents[2]->contentInfo); |
|
@@ 6087-6097 (lines=11) @@
|
| 6084 |
|
/** @var Content[] $contents */ |
| 6085 |
|
$contents = []; |
| 6086 |
|
|
| 6087 |
|
foreach ($contentNames as $contentName) { |
| 6088 |
|
$contentCreate = $this->contentService->newContentCreateStruct($contentType, 'eng-US'); |
| 6089 |
|
$contentCreate->setField('name', $contentName); |
| 6090 |
|
|
| 6091 |
|
$content = $this->contentService->createContent($contentCreate, [$parentLocation]); |
| 6092 |
|
$contents[] = $publishedContent = $this->contentService->publishVersion($content->versionInfo); |
| 6093 |
|
|
| 6094 |
|
$parentLocation = $this->locationService->newLocationCreateStruct( |
| 6095 |
|
$this->generateId('location', $publishedContent->contentInfo->mainLocationId) |
| 6096 |
|
); |
| 6097 |
|
} |
| 6098 |
|
|
| 6099 |
|
$this->contentService->hideContent($contents[0]->contentInfo); |
| 6100 |
|
$this->contentService->hideContent($contents[2]->contentInfo); |