Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
reithor committed Jun 29, 2024
1 parent 840300a commit be059a2
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ public function testUpdateContentHavingPrivateRelation(): void
$folderType = $contentTypeService->loadContentTypeByIdentifier('folder');
$folderTypeDraft = $contentTypeService->createContentTypeDraft($folderType);

$titleFieldCreateStruct = $contentTypeService->newFieldDefinitionCreateStruct('relations', 'ezobjectrelationlist');
$titleFieldCreateStruct->names = ['eng-GB' => 'Relations'];
$titleFieldCreateStruct->descriptions = ['eng-GB' => 'Relations'];
$titleFieldCreateStruct->fieldGroup = 'content';
$titleFieldCreateStruct->position = 10;
$titleFieldCreateStruct->isTranslatable = false;
$titleFieldCreateStruct->isRequired = false;
$titleFieldCreateStruct->isSearchable = false;
$contentTypeService->addFieldDefinition($folderTypeDraft, $titleFieldCreateStruct);
$relationsFieldCreateStruct = $contentTypeService->newFieldDefinitionCreateStruct('relations', 'ezobjectrelationlist');
$relationsFieldCreateStruct->names = ['eng-GB' => 'Relations'];
$relationsFieldCreateStruct->descriptions = ['eng-GB' => 'Relations'];
$relationsFieldCreateStruct->fieldGroup = 'content';
$relationsFieldCreateStruct->position = 10;
$relationsFieldCreateStruct->isTranslatable = false;
$relationsFieldCreateStruct->isRequired = false;
$relationsFieldCreateStruct->isSearchable = false;
$contentTypeService->addFieldDefinition($folderTypeDraft, $relationsFieldCreateStruct);
$contentTypeService->publishContentTypeDraft($folderTypeDraft);

// 2. Add Section 'private'
Expand Down

0 comments on commit be059a2

Please sign in to comment.