Export content
Import content from the clipboard
Exported zip file

If you are looking for a way of migrating your content and deploying them to another environment without manual steps afterward - this module is for you.

This is a simple way of exporting a content to a YML file with the possibility to import it to another environment.

You can also import content on deployment, so no user interaction is needed.

The module’s capabilities include exporting entity references (including custom entity types), translations, and the contents of custom field types.

The export functionality allows you to export content with all assets such as images, video, documents and etc.

The import functionality allows you to create content if it didn't exist or update an existing one if the uuid was matched.

You can either use UI or custom services or a custom drush command to export/import content

Extending of the module in 1.3.x

The module provides 4 custom hooks that allow you to alter export/import or add support for the custom entity references and field types.

Changes in 1.4.x

We have been working hard to move to plugins and events instead of using custom hooks to extend the module. The hooks are now deprecated. See #3336402: Move to plugins.

Existing way extending of the module is now marked as deprecated and complitly will be removed in a next major version 2.0.x

Besides, 1.4.0 introduces a new feature like a custom drush command to export/import any content.

Can I upgrade from 1.3.x to 1.4.x?

Yes, no manual actions or upgrade path needed. Just perform this command and clear cache:

composer update drupal/single_content_sync

1.4.x contains the same functionality that 1.3.x has. Everything will still work as before, if not, please report a new issue. See more details in the documentation on how to move from deprecated hooks to plugins.

It's highly recommended to update to 1.4.x as 1.3.x will no longer receive new feature. Support of 1.3.x will be dropped by November 2023

Documentation

Check out this guide to see the module’s overview and the guidelines for using it.

https://www.drupal.org/docs/contributed-modules/single-content-sync

Still have questions?

We've recently created a slack channel under Drupal workspace. Here is a link to jump into

https://drupal.slack.com/archives/C045328ESKY

Supporting organizations: 
Development and ongoing maintenance

Project information

Releases