|
@@ 6357-6367 (lines=11) @@
|
| 6354 |
|
/** @var Content[] $contents */ |
| 6355 |
|
$contents = []; |
| 6356 |
|
|
| 6357 |
|
foreach ($contentNames as $contentName) { |
| 6358 |
|
$contentCreate = $contentService->newContentCreateStruct($contentType, 'eng-US'); |
| 6359 |
|
$contentCreate->setField('name', $contentName); |
| 6360 |
|
|
| 6361 |
|
$content = $contentService->createContent($contentCreate, [$parentLocation]); |
| 6362 |
|
$contents[] = $publishedContent = $contentService->publishVersion($content->versionInfo); |
| 6363 |
|
|
| 6364 |
|
$parentLocation = $locationService->newLocationCreateStruct( |
| 6365 |
|
$this->generateId('location', $publishedContent->contentInfo->mainLocationId) |
| 6366 |
|
); |
| 6367 |
|
} |
| 6368 |
|
|
| 6369 |
|
$contentService->hideContent($contents[0]->contentInfo); |
| 6370 |
|
$contentService->hideContent($contents[2]->contentInfo); |
|
@@ 6419-6429 (lines=11) @@
|
| 6416 |
|
/** @var Content[] $contents */ |
| 6417 |
|
$contents = []; |
| 6418 |
|
|
| 6419 |
|
foreach ($contentNames as $contentName) { |
| 6420 |
|
$contentCreate = $contentService->newContentCreateStruct($contentType, 'eng-US'); |
| 6421 |
|
$contentCreate->setField('name', $contentName); |
| 6422 |
|
|
| 6423 |
|
$content = $contentService->createContent($contentCreate, [$parentLocation]); |
| 6424 |
|
$contents[] = $publishedContent = $contentService->publishVersion($content->versionInfo); |
| 6425 |
|
|
| 6426 |
|
$parentLocation = $locationService->newLocationCreateStruct( |
| 6427 |
|
$this->generateId('location', $publishedContent->contentInfo->mainLocationId) |
| 6428 |
|
); |
| 6429 |
|
} |
| 6430 |
|
|
| 6431 |
|
$contentService->hideContent($contents[0]->contentInfo); |
| 6432 |
|
$contentService->hideContent($contents[2]->contentInfo); |