Commit d7c49615 authored by catch's avatar catch

Issue #2569805 by quietone, Jo Fitzgerald, mikeryan, joelpittet, heddn, Adita,...

Issue #2569805 by quietone, Jo Fitzgerald, mikeryan, joelpittet, heddn, Adita, Miguel.kode, iMiksu, tvb, maxocub, juancasantito, phenaproxima, alexpott, neclimdul, xjm: For Drupal migration, identify the source module
parent dc5ca923
......@@ -7,6 +7,7 @@ source:
plugin: variable
variables:
- actions_max_stack
source_module: action
process:
recursion_limit: actions_max_stack
destination:
......
......@@ -10,7 +10,7 @@
*
* @MigrateSource(
* id = "action",
* source_provider = "system"
* source_module = "system"
* )
*/
class Action extends DrupalSqlBase {
......
......@@ -12,6 +12,7 @@ source:
- aggregator_teaser_length
- aggregator_clear
- aggregator_summary_items
source_module: aggregator
process:
fetcher: aggregator_fetcher
parser: aggregator_parser
......
......@@ -12,6 +12,7 @@ source:
- aggregator_teaser_length
- aggregator_clear
- aggregator_summary_items
source_module: aggregator
process:
fetcher: aggregator_fetcher
parser: aggregator_parser
......
......@@ -9,7 +9,7 @@
*
* @MigrateSource(
* id = "aggregator_feed",
* source_provider = "aggregator"
* source_module = "aggregator"
* )
*/
class AggregatorFeed extends DrupalSqlBase {
......
......@@ -9,7 +9,7 @@
*
* @MigrateSource(
* id = "aggregator_item",
* source_provider = "aggregator"
* source_module = "aggregator"
* )
*/
class AggregatorItem extends DrupalSqlBase {
......
......@@ -9,7 +9,7 @@
*
* @MigrateSource(
* id = "d7_blocked_ips",
* source_provider = "system"
* source_module = "system"
* )
*/
class BlockedIps extends DrupalSqlBase {
......
......@@ -10,7 +10,7 @@
*
* @MigrateSource(
* id = "block",
* source_provider = "block"
* source_module = "block"
* )
*/
class Block extends DrupalSqlBase {
......
......@@ -19,6 +19,7 @@ source:
type: string
field_name:
type: string
source_module: block
process:
entity_type: entity_type
bundle: bundle
......
......@@ -22,6 +22,7 @@ source:
type: string
field_name:
type: string
source_module: block
process:
entity_type: entity_type
bundle: bundle
......
......@@ -20,6 +20,7 @@ source:
type: string
field_name:
type: string
source_module: block
process:
entity_type: entity_type
bundle: bundle
......
......@@ -12,6 +12,7 @@ source:
ids:
id:
type: string
source_module: block
process:
id: id
label: label
......
......@@ -8,7 +8,8 @@
* Drupal 6 block source from database.
*
* @MigrateSource(
* id = "d6_box"
* id = "d6_box",
* source_module = "block"
* )
*/
class Box extends DrupalSqlBase {
......
......@@ -8,7 +8,8 @@
* Drupal 7 custom block source from database.
*
* @MigrateSource(
* id = "d7_block_custom"
* id = "d7_block_custom",
* source_module = "block"
* )
*/
class BlockCustom extends DrupalSqlBase {
......
......@@ -8,6 +8,7 @@ source:
- book_child_type
- book_block_mode
- book_allowed_types
source_module: book
process:
child_type: book_child_type
'block/navigation/mode': book_block_mode
......
......@@ -8,7 +8,8 @@
* Drupal 6 book source.
*
* @MigrateSource(
* id = "d6_book"
* id = "d6_book",
* source_module = "book"
* )
*/
class Book extends DrupalSqlBase {
......
......@@ -10,7 +10,7 @@
*
* @MigrateSource(
* id = "d6_comment",
* source_provider = "comment"
* source_module = "comment"
* )
*/
class Comment extends DrupalSqlBase {
......
......@@ -7,7 +7,8 @@
/**
* @MigrateSource(
* id = "d6_comment_variable"
* id = "d6_comment_variable",
* source_module = "comment"
* )
*/
class CommentVariable extends DrupalSqlBase {
......
......@@ -4,7 +4,8 @@
/**
* @MigrateSource(
* id = "d6_comment_variable_per_comment_type"
* id = "d6_comment_variable_per_comment_type",
* source_module = "comment"
* )
*/
class CommentVariablePerCommentType extends CommentVariable {
......
......@@ -10,7 +10,7 @@
*
* @MigrateSource(
* id = "d7_comment",
* source_provider = "comment"
* source_module = "comment"
* )
*/
class Comment extends FieldableEntity {
......
......@@ -11,7 +11,7 @@
*
* @MigrateSource(
* id = "d7_comment_type",
* source_provider = "comment"
* source_module = "comment"
* )
*/
class CommentType extends DrupalSqlBase {
......
......@@ -6,6 +6,7 @@ source:
plugin: i18n_variable
variables:
- site_offline_message
source_module: i18n
process:
langcode: language
message: site_offline_message
......
......@@ -13,6 +13,7 @@ source:
- site_frontpage
- site_403
- site_404
source_module: i18n
process:
langcode: language
name: site_name
......
......@@ -19,6 +19,7 @@ source:
- user_mail_register_pending_approval_body
- user_mail_status_blocked_subject
- user_mail_status_blocked_body
source_module: i18n
process:
langcode: language
'status_activated/subject':
......
......@@ -10,6 +10,7 @@ source:
- user_email_verification
- user_register
- anonymous
source_module: i18n
process:
langcode: language
'notify/status_blocked': user_mail_status_blocked_notify
......
......@@ -9,7 +9,7 @@
*
* @MigrateSource(
* id = "d6_i18n_profile_field",
* source_provider = "i18n"
* source_module = "i18nprofile"
* )
*/
class I18nProfileField extends DrupalSqlBase {
......
......@@ -10,7 +10,7 @@
*
* @MigrateSource(
* id = "contact_category",
* source_provider = "contact"
* source_module = "contact"
* )
*/
class ContactCategory extends DrupalSqlBase {
......
......@@ -7,7 +7,7 @@
/**
* @MigrateSource(
* id = "contact_settings",
* source_provider = "contact"
* source_module = "contact"
* )
*/
class ContactSettings extends Variable {
......
......@@ -6,6 +6,7 @@ source:
plugin: variable
variables:
- dblog_row_limit
source_module: dblog
process:
row_limit: dblog_row_limit
destination:
......
......@@ -6,6 +6,7 @@ source:
plugin: variable
variables:
- dblog_row_limit
source_module: dblog
process:
row_limit: dblog_row_limit
destination:
......
......@@ -10,7 +10,7 @@
*
* @MigrateSource(
* id = "d6_field",
* source_provider = "content"
* source_module = "content"
* )
*/
class Field extends DrupalSqlBase {
......
......@@ -10,7 +10,7 @@
*
* @MigrateSource(
* id = "d6_field_instance",
* source_provider = "content"
* source_module = "content"
* )
*/
class FieldInstance extends DrupalSqlBase {
......
......@@ -9,7 +9,7 @@
*
* @MigrateSource(
* id = "d6_field_instance_per_form_display",
* source_provider = "content"
* source_module = "content"
* )
*/
class FieldInstancePerFormDisplay extends DrupalSqlBase {
......
......@@ -9,7 +9,7 @@
*
* @MigrateSource(
* id = "d6_field_instance_per_view_mode",
* source_provider = "content"
* source_module = "content"
* )
*/
class FieldInstancePerViewMode extends ViewModeBase {
......
......@@ -14,7 +14,8 @@
* Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase instead.
*
* @MigrateSource(
* id = "d7_field"
* id = "d7_field",
* source_module = "field"
* )
*/
class Field extends DrupalSqlBase {
......
......@@ -15,7 +15,7 @@
*
* @MigrateSource(
* id = "d7_field_instance",
* source_provider = "field"
* source_module = "field"
* )
*/
class FieldInstance extends DrupalSqlBase {
......
......@@ -7,7 +7,7 @@
*
* @MigrateSource(
* id = "d7_field_instance_per_form_display",
* source_provider = "field"
* source_module = "field"
* )
*/
class FieldInstancePerFormDisplay extends FieldInstance {
......
......@@ -7,7 +7,7 @@
*
* @MigrateSource(
* id = "d7_field_instance_per_view_mode",
* source_provider = "field"
* source_module = "field"
* )
*/
class FieldInstancePerViewMode extends FieldInstance {
......
......@@ -7,7 +7,7 @@
*
* @MigrateSource(
* id = "d7_view_mode",
* source_provider = "field"
* source_module = "field"
* )
*/
class ViewMode extends FieldInstance {
......
......@@ -6,7 +6,7 @@ source:
# We do an empty source and a proper destination to have an idmap for
# migration_dependencies.
plugin: md_empty
provider: upload
source_module: upload
constants:
entity_type: node
type: file
......
......@@ -9,6 +9,7 @@ source:
- file_description_type
- file_description_length
- file_icon_directory
source_module: system
process:
'description/type': file_description_type
'description/length': file_description_length
......
......@@ -9,7 +9,8 @@
* Drupal 6 file source from database.
*
* @MigrateSource(
* id = "d6_file"
* id = "d6_file",
* source_module = "system"
* )
*/
class File extends DrupalSqlBase {
......
......@@ -10,7 +10,7 @@
*
* @MigrateSource(
* id = "d6_upload",
* source_provider = "upload"
* source_module = "upload"
* )
*/
class Upload extends DrupalSqlBase {
......
......@@ -10,7 +10,7 @@
*
* @MigrateSource(
* id = "d6_upload_instance",
* source_provider = "upload"
* source_module = "upload"
* )
*/
class UploadInstance extends DrupalSqlBase {
......
......@@ -10,7 +10,8 @@
* Drupal 7 file source from database.
*
* @MigrateSource(
* id = "d7_file"
* id = "d7_file",
* source_module = "file"
* )
*/
class File extends DrupalSqlBase {
......
......@@ -6,6 +6,7 @@ source:
plugin: variable
variables:
- filter_fallback_format
source_module: filter
process:
fallback_format: filter_fallback_format
destination:
......
......@@ -9,7 +9,8 @@
* Drupal 6 filter source from database.
*
* @MigrateSource(
* id = "d6_filter_format"
* id = "d6_filter_format",
* source_module = "filter"
* )
*/
class FilterFormat extends DrupalSqlBase {
......
......@@ -9,7 +9,8 @@
* Drupal 7 filter source from database.
*
* @MigrateSource(
* id = "d7_filter_format"
* id = "d7_filter_format",
* source_module = "filter"
* )
*/
class FilterFormat extends DrupalSqlBase {
......
......@@ -11,6 +11,7 @@ source:
- forum_block_num_0
- forum_block_num_1
- forum_nav_vocabulary
source_module: forum
process:
'block/active/limit': forum_block_num_0
'block/new/limit': forum_block_num_1
......
......@@ -11,6 +11,7 @@ source:
- forum_block_num_active
- forum_block_num_new
- forum_nav_vocabulary
source_module: forum
process:
'block/active/limit': forum_block_num_active
'block/new/limit': forum_block_num_new
......
......@@ -8,6 +8,7 @@ source:
- allow_insecure_derivatives
- suppress_itok_output
- image_style_preview_image
source_module: image
process:
suppress_itok_output: suppress_itok_output
allow_insecure_derivatives: allow_insecure_derivatives
......
......@@ -10,7 +10,7 @@
*
* @MigrateSource(
* id = "d6_imagecache_presets",
* source_provider = "imagecache"
* source_module = "imagecache"
* )
*/
class ImageCachePreset extends DrupalSqlBase {
......
......@@ -10,7 +10,7 @@
*
* @MigrateSource(
* id = "d7_image_styles",
* source_provider = "image"
* source_module = "image"
* )
*/
class ImageStyles extends DrupalSqlBase {
......
......@@ -6,6 +6,7 @@ source:
plugin: variable
variables:
- language_negotiation
source_module: language
process:
session/parameter:
plugin: default_value
......
......@@ -6,6 +6,7 @@ source:
plugin: variable
variables:
- language_negotiation
source_module: language
process:
all:
plugin: default_value
......
......@@ -7,6 +7,7 @@ source:
variables:
- locale_language_negotiation_session_param
- locale_language_negotiation_url_part
source_module: locale
process:
session/parameter:
plugin: default_value
......
......@@ -12,6 +12,7 @@ source:
- locale_language_providers_weight_language
- locale_language_providers_weight_language_content
- locale_language_providers_weight_language_url
source_module: language
process:
all:
plugin: language_types
......
......@@ -7,6 +7,7 @@ source:
plugin: variable
variables:
- language_default
source_module: locale
process:
default_langcode:
-
......
......@@ -8,7 +8,7 @@
/**
* @MigrateSource(
* id = "language",
* source_provider = "locale"
* source_module = "locale"
* )
*/
class Language extends DrupalSqlBase {
......
......@@ -10,6 +10,7 @@
*
* @MigrateSource(
* id = "d6_language_content_settings",
* source_module = "locale"
* )
*/
class LanguageContentSettings extends DrupalSqlBase {
......
......@@ -10,6 +10,7 @@
*
* @MigrateSource(
* id = "d7_language_content_settings",
* source_module = "locale"
* )
*/
class LanguageContentSettings extends DrupalSqlBase {
......
......@@ -8,6 +8,7 @@ source:
variables:
- locale_cache_strings
- locale_js_directory
source_module: locale
process:
cache_strings: locale_cache_strings
'javascript/directory': locale_js_directory
......
......@@ -11,6 +11,7 @@
*
* @MigrateSource(
* id = "menu_link",
* source_module = "menu"
* )
*/
class MenuLink extends DrupalSqlBase {
......
......@@ -8,6 +8,7 @@ source:
plugin: variable
variables:
- menu_override_parent_selector
source_module: menu
process:
override_parent_selector: menu_override_parent_selector
destination:
......
......@@ -43,4 +43,15 @@ class MigrateDestination extends Plugin {
*/
public $requirements_met = TRUE;
/**
* Identifies the system handling the data the destination plugin will write.
*
* The destination plugin itself determines how the value is used. For
* example, Migrate Drupal's destination plugins expect destination_module to
* be the name of a module that must be installed on the destination.
*
* @var string
*/
public $destination_module;
}
......@@ -43,16 +43,15 @@ class MigrateSource extends Plugin implements MultipleProviderAnnotationInterfac
/**
* Identifies the system providing the data the source plugin will read.
*
* This can be any type, and the source plugin itself determines how the value
* is used. For example, Migrate Drupal's source plugins expect
* source_provider to be the name of a module that must be installed and
* enabled in the source database.
* The source plugin itself determines how the value is used. For example,
* Migrate Drupal's source plugins expect source_module to be the name of a
* module that must be installed and enabled in the source database.
*
* @see \Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase::checkRequirements
*
* @var mixed
* @var string
*/
public $source_provider;
public $source_module;
/**
* Specifies the minimum version of the source provider.
......@@ -60,7 +59,7 @@ class MigrateSource extends Plugin implements MultipleProviderAnnotationInterfac
* This can be any type, and the source plugin itself determines how it is
* used. For example, Migrate Drupal's source plugins expect this to be an
* integer representing the minimum installed database schema version of the
* module specified by source_provider.
* module specified by source_module.
*
* @var mixed