Commit 9da1ae7b authored by git's avatar git Committed by mikeryan
Browse files

Issue #2574903 by gl2748: Examples should uninstall configuration

parent 1eb9cb92
......@@ -39,3 +39,7 @@ migration_dependencies:
required:
- beer_node
- beer_user
dependencies:
enforced:
module:
- migrate_example
......@@ -47,3 +47,7 @@ migration_dependencies:
required:
- beer_term
- beer_user
dependencies:
enforced:
module:
- migrate_example
......@@ -76,3 +76,12 @@ process:
# We'll learn more about dependencies in beer_node - here, we leave them empty.
migration_dependencies: {}
# By default, configuration entities (like this migration) are not automatically
# removed when the migration which installed them is uninstalled. To have your
# migrations uninstalled with your migration module, add an enforced dependency
# on your module.
dependencies:
enforced:
module:
- migrate_example
......@@ -98,3 +98,11 @@ process:
# migration: beer_node
migration_dependencies: {}
# When a module is creating a custom content type it needs to add an
# enforced dependency to itself, otherwise the content type will persist
# after the module is disabled. See: https://www.drupal.org/node/2629516.
dependencies:
enforced:
module:
- migrate_example
......@@ -28,3 +28,11 @@ shared_configuration:
# connection to your external database in settings.php and reference its
# key here.
key: default
# As with the migration configuration (see beer_term), we add an enforced
# dependency so the migration_group configuration will be removed on module
# uninstall.
dependencies:
enforced:
module:
- migrate_example
......@@ -41,3 +41,7 @@ process:
destination:
plugin: entity:user_role
migration_dependencies: {}
dependencies:
enforced:
module:
- migrate_example_advanced
......@@ -45,3 +45,7 @@ process:
destination:
plugin: entity:user_role
migration_dependencies: {}
dependencies:
enforced:
module:
- migrate_example_advanced
......@@ -31,3 +31,7 @@ process:
source: category_parent
weight: ordering
migration_dependencies: {}
dependencies:
enforced:
module:
- migrate_example_advanced
......@@ -63,3 +63,7 @@ destination:
migration_dependencies:
required:
- wine_terms
dependencies:
enforced:
module:
- migrate_example_advanced
......@@ -5,3 +5,7 @@ source_type: Custom tables and XML
shared_configuration:
source:
key: default
dependencies:
enforced:
module:
- migrate_example_advanced
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment