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'
'settings/comment_type': comment_type
destination:
plugin: md_entity:field_storage_config
plugin: entity:field_storage_config
dependencies:
module:
- comment
migration_dependencies:
required:
- d6_comment_type

View File

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

View File

@ -20,4 +20,7 @@ process:
cardinality: 'constants/cardinality'
'settings/display_field': 'constants/display_field'
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
* 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
* (optional) The migration containing this destination. Defaults to NULL.
* Unused, will be removed before Drupal 9.0.x. Defaults to NULL.
*
* @return array
* - 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;
/**
* Destination with Drupal specific config dependencies.
* Deprecated. Destination with Drupal specific config dependencies.
*
* @MigrateDestination(
* 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 {

View File

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

View File

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

View File

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