Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

Entity Staging

Security covered

Part of the Entity ecosystem · 235 projects

View on drupal.org

What is this module?

This module is used to export content entities and import content after a complete installation.
It also be used to synchronise content between two different platform.

This module provide in details:

A configurable export

  • Destination folder
  • Entity types / bundles allowed to be exported

An entity export

  • Drush command to do the export (drupal console command planned)
  • Single language or Multi languages

An entity import

  • Drush command to generate all migration entities regarding the module configuration (destination folder / entity types and bundle choice)
  • Use drush migrate commands to do the import.
  • Process definition for each field types in migration entity (basic field, entity reference field, ...), easily overridable (EventDispatcher)

Compatibility

This module allows to export ALL Entities that implements the ContentEntityTypeInterface

How does it work?

Exporting content:

  1. After enabling this module, go to /admin/config/system/content-staging:
  2. - Choose all entity types / bundles you want to export the content
    - Change the default content staging directory ('../staging' by default).
    This directory is relative to the drupal root.

  3. Run the drush command: $ drush export-content (ex)
  4. Don't forget to export the entity_staging configurarion (entity_staging.settings.yml)

Importing content:

  1. Run the drush command to update migration entities regarding the previous configuration: $ drush update-migration-config (umc)
  2. Run the migration:
    • for creation only: $ drush migrate:import --group=entity_staging
    • for creation and update: $ drush migrate:import --update --group=entity_staging

Requirements

migrate_plus (>= 4.0)
migrate_tools (>= 4.0)

Special thanks to:

  • FGM for the initial idea (2 years ago at FTV)
  • bpresles for the many tests

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Oct 2023
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core Release date
2.0.0-alpha1 Pre-release Oct 20, 2023
2.0.x-dev Dev Oct 20, 2023