In Drupal version 7, within the overview of all Views available in a site (located at "admin/structure/views"), for each view there are these options (links) at the very right after each view:

  • Enable (if view is disabled) or Disable (if view enabled).
  • Edit.
  • Delete.
  • Clone.
  • Export.

And near the top there is also an "import" link.

However, in Drupal version 8, on the equivalent page (also at "admin/structure/views"), there is no more link like export or import.

So what happened to importing/exporting of a view in D8?

up vote 4 down vote accepted

That Views import/export facility is no longer available in Drupal version 8 (within "admin/structure/views") ...

A possible way to do similar Views imports/exports in Drupal version 8 is to use the new configuration management facilities, which can typically be used to migrate configuration items, such as Views, between related dev, staging and production sites.

So it appears to me that as of right now (8.0.5) there is no "easy" way (as it used to be in Drupal version 7) to do such imports/exports between 2 sites that are not "related". Except probably/maybe with some special manual editing to make the site Ids match somehow.

Though according to Berdir's comment below (excl. some typos), "that's not true. You can use single import/export of any configuration file between any site, as long as you take care of the dependencies as well. The related site/UUID checks only apply to a whole config sync.". And followed by the /admin/config/development/configuration/single/import suggestion (merci Berdir).

Maybe an opportunity for a new D8 contributed module to bring this import/export facility back ... and/or one of the "reasons to be" for the Features module in D8 (as suggested in another comment by Danny Englander) (merci Danny).

PS: For some more info about /admin/config/development/configuration/single/import mentioned above, refer to the Community documentation about "Managing configuration in Drupal 8". Part of what is included on that page is like so (bold markup added here):

It is possible to export a single configuration file and paste it into another environment. The single import option lets you specify the type of the configuration file and import it from your copy-pasted value.

Though nowhere on that page I could find an indication if using "environments" for which site Ids are different (for "single" imports) is allowed or not.

If you want to get an idea of how it is like to use these import/export features, then have a look at the slideshow "The Magic of Drupal 8’s Configuration Management on a Managed Workflow" (especially slides like on page 44 to 48).

  • 2
    That's not true. You can use single import/export of any configuration file between any site, as long as you take care of the dependencies as well. The related site/UUID checks only apple to a while config sync. – Berdir Mar 7 '16 at 23:50
  • @Berdir where is the import/export button in D8? – No Sssweat Mar 8 '16 at 1:50
  • I'm really liking the Features module for D8, it really puts a nice interface on keeping any kind of config in code / version control including Views. – Danny Englander Mar 8 '16 at 3:33
  • 2
    @NoSssweat: Here: d8/admin/config/development/configuration/single/import – Berdir Mar 8 '16 at 7:05
  • @Berdir WOW that's really awesome, you can export/import pretty much anything, sick. – No Sssweat Mar 8 '16 at 7:19

You have to install Configuration Manager module . Then, go to admin/config/development/configuration/single/export and get your yml file.

  • Looking at the available releases of the module you linked to, I cannot find any release for D8. Am I missing something? – Pierre.Vriens Sep 20 '17 at 16:27

Your Answer

 
discard

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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