VersionBuilder
        VersionBuilder.php
                :
        21
                 
    
                                Final
                
        
        
                Version builder.
Builder of Version instance.
Methods¶
                 build()
            ¶
build()
            ¶
    
        
        VersionBuilder.php
                :
        26
                 
    
        |  |  | 
Return values
                 changeStatusTo()
            ¶
changeStatusTo()
            ¶
    
        
        VersionBuilder.php
                :
        100
                 
    
        Set intent to change Version status.
|  |  | 
Supported: VersionInfo::STATUS_DRAFT, VersionInfo::STATUS_PUBLISHED, VersionInfo::STATUS_ARCHIVED
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $status | int | - | - | 
Return values
Tags
                 createFromAnyContentTypeOf()
            ¶
createFromAnyContentTypeOf()
            ¶
    
        
        VersionBuilder.php
                :
        74
                 
    
        Set intent to create Content from unspecified (yet) content type, any from the given list.
|  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $contentTypeIds | array<int, int> | - | - | 
Return values
Tags
                 publishTranslations()
            ¶
publishTranslations()
            ¶
    
        
        VersionBuilder.php
                :
        151
                 
    
        Set intent to publish, to specified translations, all from the given list.
|  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $languageCodes | array<int, string> | - | - | 
Return values
Tags
                 translateToAnyLanguageOf()
            ¶
translateToAnyLanguageOf()
            ¶
    
        
        VersionBuilder.php
                :
        52
                 
    
        Set intent to translate, to an unspecified (yet) language, any from the given list.
|  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $languageCodes | array<string|int, mixed> | - | - | 
Return values
Tags
                 updateFields()
            ¶
updateFields()
            ¶
    
        
        VersionBuilder.php
                :
        36
                 
    
        |  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $updatedFields | array<string|int, Field> | - | - | 
Return values
                 updateFieldsTo()
            ¶
updateFieldsTo()
            ¶
    
        
        VersionBuilder.php
                :
        125
                 
    
        Set intent to update Content Version Fields.
|  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $initialLanguageCode | string|null | - | - | 
| $fields | array<int, Field> | - | - |