config:export:entity
Export a specific config entity and their fields.
Usage:
drupal config:export:entity [arguments] [options]
cee
Available options
Option | Details |
---|---|
--module | A modul neve. |
--optional-config | Export bundle as an optional YAML configuration in your module |
--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. |
--include-module-dependencies | Include bundle module dependencies in module info YAML file |
Available arguments
Argument | Details |
---|---|
entity-type | An entity type (node_type, taxonomy_vocabulary, paragraphs_type) to be exported |
bundle | A bundle to be exported |
Examples
Provide an entity type, a bundle and a module name
drupal config:export:entity node_type page \
--module="demo"
If you want export a bundle as an optional config
drupal config:export:entity node_type page \
--module="demo" \
--optional-config \
--remove-uuid \
--remove-config-hash