|
@@ 6406-6416 (lines=11) @@
|
| 6403 |
|
/** @var Content[] $contents */ |
| 6404 |
|
$contents = []; |
| 6405 |
|
|
| 6406 |
|
foreach ($contentNames as $contentName) { |
| 6407 |
|
$contentCreate = $contentService->newContentCreateStruct($contentType, 'eng-US'); |
| 6408 |
|
$contentCreate->setField('name', $contentName); |
| 6409 |
|
|
| 6410 |
|
$content = $contentService->createContent($contentCreate, [$parentLocation]); |
| 6411 |
|
$contents[] = $publishedContent = $contentService->publishVersion($content->versionInfo); |
| 6412 |
|
|
| 6413 |
|
$parentLocation = $locationService->newLocationCreateStruct( |
| 6414 |
|
$this->generateId('location', $publishedContent->contentInfo->mainLocationId) |
| 6415 |
|
); |
| 6416 |
|
} |
| 6417 |
|
|
| 6418 |
|
$contentService->hideContent($contents[0]->contentInfo); |
| 6419 |
|
$contentService->hideContent($contents[2]->contentInfo); |
|
@@ 6468-6478 (lines=11) @@
|
| 6465 |
|
/** @var Content[] $contents */ |
| 6466 |
|
$contents = []; |
| 6467 |
|
|
| 6468 |
|
foreach ($contentNames as $contentName) { |
| 6469 |
|
$contentCreate = $contentService->newContentCreateStruct($contentType, 'eng-US'); |
| 6470 |
|
$contentCreate->setField('name', $contentName); |
| 6471 |
|
|
| 6472 |
|
$content = $contentService->createContent($contentCreate, [$parentLocation]); |
| 6473 |
|
$contents[] = $publishedContent = $contentService->publishVersion($content->versionInfo); |
| 6474 |
|
|
| 6475 |
|
$parentLocation = $locationService->newLocationCreateStruct( |
| 6476 |
|
$this->generateId('location', $publishedContent->contentInfo->mainLocationId) |
| 6477 |
|
); |
| 6478 |
|
} |
| 6479 |
|
|
| 6480 |
|
$contentService->hideContent($contents[0]->contentInfo); |
| 6481 |
|
$contentService->hideContent($contents[2]->contentInfo); |