final class ContentCommandController extends CommandController (View source)

Methods

__construct(ContentRepositoryRegistry $contentRepositoryRegistry)

No description

void
createVariantsRecursivelyCommand(string $source, string $target, string $contentRepository = 'default', string $workspace = WorkspaceName::WORKSPACE_NAME_LIVE)

Creates node variants recursively from the source to the target dimension space point in the specified workspace and content repository.

Details

__construct(ContentRepositoryRegistry $contentRepositoryRegistry)

No description

Parameters

ContentRepositoryRegistry $contentRepositoryRegistry

void createVariantsRecursivelyCommand(string $source, string $target, string $contentRepository = 'default', string $workspace = WorkspaceName::WORKSPACE_NAME_LIVE)

Creates node variants recursively from the source to the target dimension space point in the specified workspace and content repository.

This can be necessary if a new content dimension specialization was added (for example a more specific language)

Note: source and target dimensions have to be specified as JSON, for example:

./flow content:createvariantsrecursively '{"language": "de"}' '{"language": "de_ch"}'

Parameters

string $source

The JSON representation of the source dimension space point. (Example: '{"language": "de"}')

string $target

The JSON representation of the target origin dimension space point. (Example: '{"language": "en"}')

string $contentRepository

The content repository identifier. (Default: 'default')

string $workspace

The workspace name. (Default: 'live')

Return Value

void