Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Fix logic for exporting entities.
All entities of given type are exported only if no bundle and no specific IDs are defined in dcde or dcder drush command.
Command drush dcde node --bundle=page
will export only nodes of content type "page". If there is no content of bundle "page", no content will be exported.
Command drush dcde node
will export all nodes of all content types.
drush dcdes
Command updated. Exports a whole site content.
Option --add_entity_type is removed, because command detects all content entity types and exports all its content by default.
You can still exclude any content entity type from the export.
Config directory will be emptied and all content of all entities will be exported.
dcd-entity-list
New command. Displays all current content entity types. Useful for choosing which to skip during the export.
Use $config['content_directory'] for definition of export/import content directory.
Using of $config_directories['content_directory'] is not recommended, because it causes unnecessary questions during drush cim or cex commands. But it was (by mistake) implemented in 8.x-1.0-alpha1 and 8.x-1.0-alpha2, so there is implemented a backward compatibility (both ways can be used).