Hi,

I've been doing some research in finding a migrating process for views that will show a process of migrating views from Drupal 7 to Drupal 8.

After reading the migrating API, I've noticed that most of the focus of the docs resides in migrating content but not the structure.

I wanted to ask if there's a way of grabbing views from databases(Source) and imported into Views(Destination) using the Migration API tools.

Best,

Comments

pixelsweatshop’s picture

No, you need to rebuild them. There is no upgrade path between 7-8. Core maintainers went with the approach of rebuild in 8 and migrate content. Too many architectural changes. That is why you only see docs about content.

designcrs’s picture

https://www.drupal.org/project/view_migration

This lets you export your Drupal 7 views as Drupal 8 YAML code.

gauravmysme’s picture

Getting this error

The import failed with the following message: Unable to parse at line 1 (near "$view = new view();").

Gerhard Roth’s picture

My expierence last year was: The idea behind the module is interesting but the realization is too simple
My Comments on it:
https://www.drupal.org/project/view_migration/issues/2930605
No progress since 2017. Very sad, that there is no really good solution.

sundhar’s picture

https://www.drupal.org/project/views_migration use this module for import Drupal 7 views, It supports default drupal entity_types

designcrs’s picture

thank you! looks great, but didn't get a chance to try it so far.