config:export:entity
Export a specific config entity and their fields.
使用方法:
drupal config:export:entity [arguments] [options]
cee
可用选项
选项 | 详细信息 |
---|---|
--module | 模块名 |
--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 |
可用参数
参数 | 详细信息 |
---|---|
entity-type | An entity type (node_type, taxonomy_vocabulary, paragraphs_type) to be exported |
bundle | A bundle to be exported |
例子
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