From cdc910fb3bbb17b6b8d267677ded8a991afdfffd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Harold=20Ju=C3=A1rez?= Date: Thu, 27 Jun 2019 17:32:47 -0600 Subject: [PATCH] Add fixes from documentation repository (#240) --- translations/config.export.content.type.yml | 4 ++-- translations/config.export.single.yml | 4 ++-- translations/config.export.view.yml | 13 +++++++++---- translations/config.export.yml | 2 +- 4 files changed, 14 insertions(+), 9 deletions(-) diff --git a/translations/config.export.content.type.yml b/translations/config.export.content.type.yml index 37a1b53..6eb4e93 100644 --- a/translations/config.export.content.type.yml +++ b/translations/config.export.content.type.yml @@ -16,11 +16,11 @@ options: remove-config-hash: 'If set, the configuration will be exported without the default site hash key.' include-module-dependencies: 'Include content type module dependencies in module info YAML file' examples: - - description: 'Provide a content type and module name' + - description: 'Provide a content type and module name.' execution: | drupal config:export:content:type page \ --module="demo" - - description: 'If you want export content type provide the optional config' + - description: 'Export content type as an optional config for the provided module.' execution: | drupal config:export:content:type page \ --module="demo" \ diff --git a/translations/config.export.single.yml b/translations/config.export.single.yml index b0a1c51..5a5668d 100644 --- a/translations/config.export.single.yml +++ b/translations/config.export.single.yml @@ -19,11 +19,11 @@ messages: invalid-config-name: 'Invalid config name, please select one of the list' config-exported: 'Configuration(s) exported successfully' examples: - - description: 'Provide config settings name to be exported' + - description: 'Provide config settings name to be exported.' execution: | drupal config:export:single \ --name=config.settings.name - - description: 'if uuid and/or config hashes will be removed.' + - description: 'Export with uuid and config hashes removed.' execution: | drupal config:export:single \ --name=config.settings.name \ diff --git a/translations/config.export.view.yml b/translations/config.export.view.yml index d4f5bde..fe9f890 100644 --- a/translations/config.export.view.yml +++ b/translations/config.export.view.yml @@ -1,4 +1,4 @@ -description: 'Export a view in YAML format inside a provided module to reuse in other website.' +description: 'Export a view in YAML format inside a provided module to reuse in another website.' messages: view-exported: 'View exported sucessfully' depencies-included: 'The following module dependencies were included at "%s"' @@ -17,9 +17,9 @@ options: remove-uuid: 'If set, the configuration will be exported without uuid key.' remove-config-hash: 'If set, the configuration will be exported without the default site hash key.' examples: - - description: 'Provide a view id' + - description: 'Perform a simple export.' execution: drupal config:export:view viewid - - description: 'You can provide the interactive values like parameter.' + - description: 'Export as optional config for the provided module.' execution: | drupal config:export:view viewid \ --module="modulename" \ @@ -27,4 +27,9 @@ examples: --include-module-dependencies \ --remove-uuid \ --remove-config-hash - + - description: "Export as config for the provided module, updating the module's info.yml with any module dependencies from the view." + execution: | + drupal config:export:view viewid \ + --module="modulename" \ + --optional-config \ + --include-module-dependencies \ No newline at end of file diff --git a/translations/config.export.yml b/translations/config.export.yml index 582f119..09af25a 100644 --- a/translations/config.export.yml +++ b/translations/config.export.yml @@ -14,7 +14,7 @@ examples: execution: | drupal config:export \ --directory="path/to/export" - - description: 'If export will be in a compressed file and/or if uuid and config hashes will be removed.' + - description: 'Export as a compressed file with uuid and config hashes removed' execution: | drupal config:export \ --directory="path/to/export" \