config:export:entity

Export a specific config entity and their fields.

Utilisation:

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

Options disponibles

Option Détails
--module Le nom du 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

Paramètres disponibles

Paramètre Détails
entity-type An entity type (node_type, taxonomy_vocabulary, paragraphs_type) to be exported
bundle A bundle to be exported

Exemples

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