5

how can I get all available migration destination plugins? A way to ask with drupal console?

like listed on Migrate destination plugin examples

1 Answer 1

7
  • With Drupal Console:

    $ drupal debug:plugin migrate.destination
    

    Or short:

    $ drupal dpl migrate.destination
    

    gives:

    ------------------------------------------ --------------------------------------------------------------------------------------- 
      Plugin ID                                  Plugin class                                                                           
     ------------------------------------------ --------------------------------------------------------------------------------------- 
      component_entity_display                   Drupal\migrate\Plugin\migrate\destination\PerComponentEntityDisplay                    
      component_entity_form_display              Drupal\migrate\Plugin\migrate\destination\PerComponentEntityFormDisplay                
      config                                     Drupal\migrate\Plugin\migrate\destination\Config                                       
      d7_theme_settings                          Drupal\system\Plugin\migrate\destination\d7\ThemeSettings                              
      entity:action                              Drupal\migrate\Plugin\migrate\destination\EntityConfigBase                             
      entity:base_field_override                 Drupal\migrate\Plugin\migrate\destination\EntityBaseFieldOverride                      
      entity:block                               Drupal\block\Plugin\migrate\destination\EntityBlock                                    
      entity:block_content                       Drupal\migrate\Plugin\migrate\destination\EntityContentBase                            
      entity:block_content_type                  Drupal\migrate\Plugin\migrate\destination\EntityConfigBase                                                        
      entity:comment                             Drupal\comment\Plugin\migrate\destination\EntityComment                                
      ...          
    
  • With drush:

    $ drush php
    >>> array_keys(\Drupal::service('plugin.manager.migrate.destination')->getDefinitions());
    

    gives:

    => [
     "entity:block",
     "entity:comment",
     "entity:comment_type",
     "d7_field_group",
     "field_group_entity_form_display",
     "field_group_entity_view_display",
     "entity:file",
     ...
    ]
    

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.