Based on webchick's comment on #2248407-3: D6 Block Mapping, survey the top 10 or so widely used base themes and create map that can be used to map blocks in D6 regions to their appropriate D8 regions.

Currently, the migrate_drupal module maps regions in only D6 core themes to D8 core themes. It would be valuable if we could expand the map to include widely-used base themes as well.

Once #2248407: D6 Block Mapping is complete, the map will be a PHP array (what else?!) in the getCoreRegionMap method of Drupal\migrate_drupal\Plugin\migrate\Process\d6\BlockRegion. It goes something like this:

'D6_theme_machine_name' => array(
  'D8_theme_machine_name' => array(
    'D6_region_name' => 'D8_region_name', 
    ...
  'Another_D8_theme_machine_name' => array(
    'D6_region_name' => 'D8_region_name', 
    ...
  ...

Here's an actual snippet:

  protected static function getCoreRegionMap() {
    return array(
      'garland' => array(
        'bartik' => array(
          'left' => 'sidebar_first',
          'right' => 'sidebar_second',
          'content' => 'content',
          'header' => 'header',
          'footer' => 'footer',
        ),
        'seven' => array(
          'content' => 'content',
        ),
        'stark' => array(
          'left' => 'sidebar_first',
          'right' => 'sidebar_second',
          'content' => 'content',
          'header' => 'header',
          'footer' => 'footer',
        ),
      ),
...

thanks,
-mike

Comments

anavarre’s picture

Version: 8.0.x-dev » 8.1.x-dev

Drupal 8.0.6 was released on April 6 and is the final bugfix release for the Drupal 8.0.x series. Drupal 8.0.x will not receive any further development aside from security fixes. Drupal 8.1.0-rc1 is now available and sites should prepare to update to 8.1.0.

Bug reports should be targeted against the 8.1.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.9 was released on September 7 and is the final bugfix release for the Drupal 8.1.x series. Drupal 8.1.x will not receive any further development aside from security fixes. Drupal 8.2.0-rc1 is now available and sites should prepare to upgrade to 8.2.0.

Bug reports should be targeted against the 8.2.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

heddn’s picture

Status: Active » Closed (works as designed)

I don't think this will happen in the core migration system. Maybe those pupular contrib themes can provide their own hooks to do this using a migration_plugin_alter.