Issue #2543568 by mikeryan, quietone, Ryan Weal, chipway, iMiksu, heddn, alexpott: Remove the md_entity destination plugin hack

8.3.x
Nathaniel Catchpole 2016-11-23 14:23:45 +00:00
parent 11cb2b73a6
commit 09ad5fdb76
8 changed files with 26 additions and 11 deletions

View File

@ -13,7 +13,10 @@ process:
type: 'constants/type' type: 'constants/type'
'settings/comment_type': comment_type 'settings/comment_type': comment_type
destination: destination:
plugin: md_entity:field_storage_config plugin: entity:field_storage_config
dependencies:
module:
- comment
migration_dependencies: migration_dependencies:
required: required:
- d6_comment_type - d6_comment_type

View File

@ -123,4 +123,4 @@ process:
- '@type' - '@type'
- global_settings - global_settings
destination: destination:
plugin: md_entity:field_storage_config plugin: entity:field_storage_config

View File

@ -20,4 +20,7 @@ process:
cardinality: 'constants/cardinality' cardinality: 'constants/cardinality'
'settings/display_field': 'constants/display_field' 'settings/display_field': 'constants/display_field'
destination: destination:
plugin: md_entity:field_storage_config plugin: entity:field_storage_config
dependencies:
module:
- file

View File

@ -83,11 +83,8 @@ interface MigrateDestinationInterface extends PluginInspectionInterface {
* Derived classes must implement fields(), returning a list of available * Derived classes must implement fields(), returning a list of available
* destination fields. * destination fields.
* *
* @todo Review the cases where we need the Migration parameter, can we avoid
* that? To be resolved with https://www.drupal.org/node/2543568.
*
* @param \Drupal\migrate\Plugin\MigrationInterface $migration * @param \Drupal\migrate\Plugin\MigrationInterface $migration
* (optional) The migration containing this destination. Defaults to NULL. * Unused, will be removed before Drupal 9.0.x. Defaults to NULL.
* *
* @return array * @return array
* - Keys: machine names of the fields * - Keys: machine names of the fields

View File

@ -9,11 +9,17 @@ use Drupal\migrate\Plugin\MigrationInterface;
use Drupal\migrate\Plugin\migrate\destination\EntityFieldStorageConfig as BaseEntityFieldStorageConfig; use Drupal\migrate\Plugin\migrate\destination\EntityFieldStorageConfig as BaseEntityFieldStorageConfig;
/** /**
* Destination with Drupal specific config dependencies. * Deprecated. Destination with Drupal specific config dependencies.
* *
* @MigrateDestination( * @MigrateDestination(
* id = "md_entity:field_storage_config" * id = "md_entity:field_storage_config"
* ) * )
*
* @deprecated in Drupal 8.2.x and will be removed in Drupal 9.0.x. Use
* \Drupal\migrate\Plugin\migrate\destination\EntityFieldStorageConfig
* instead.
*
* @see \Drupal\migrate\Plugin\migrate\destination\EntityFieldStorageConfig
*/ */
class EntityFieldStorageConfig extends BaseEntityFieldStorageConfig { class EntityFieldStorageConfig extends BaseEntityFieldStorageConfig {

View File

@ -22,7 +22,10 @@ process:
'settings/target_type': 'constants/target_entity_type' 'settings/target_type': 'constants/target_entity_type'
cardinality: cardinality cardinality: cardinality
destination: destination:
plugin: md_entity:field_storage_config plugin: entity:field_storage_config
dependencies:
module:
- entity_reference
migration_dependencies: migration_dependencies:
required: required:
- d6_taxonomy_vocabulary - d6_taxonomy_vocabulary

View File

@ -18,4 +18,7 @@ process:
type: 'constants/type' type: 'constants/type'
cardinality: 'constants/cardinality' cardinality: 'constants/cardinality'
destination: destination:
plugin: md_entity:field_storage_config plugin: entity:field_storage_config
dependencies:
module:
- image

View File

@ -32,4 +32,4 @@ process:
map: map:
list: -1 list: -1
destination: destination:
plugin: md_entity:field_storage_config plugin: entity:field_storage_config