config:export:entity

Export a specific config entity and their fields.

Utilização:

drupal config:export:entity [arguments] [options]
cee

Opções disponíveis

OpçãoDetalhes

--module

O nome do módulo.

--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

Argumentos disponíveis

ArgumentoDetalhes

entity-type

An entity type (node_type, taxonomy_vocabulary, paragraphs_type) to be exported

bundle

A bundle to be exported

Exemplos

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