I know how to do it in Drupal 6/7, but I cannot find where to export/import views in Drupal 8. From which admin page is possible to do it, in Drupal 8?
Views are configuration entities in Drupal 8, and can be exported via the Configuration Management module.
Views are available through configuration in Drupal 8, and can be exported via the Configuration Management interface.
In that menu area, the Export tab leads to the path: http://sitename/admin/config/development/configuration/single/export
In that area, a single view can be exported or imported, and the steps are about the same so I'll include Export here to help explain.
- Select 'Export' menu tab.
- Select 'Single item' sub menu tab.
- From the first item drop down 'Configuration type' select 'View'.
- From the second item drop down 'Configuration name' select the name of your view.
The result is a views.view.view_machine_name.yml "YAML" file that can be copy pasted into the 'Import' area.
Once a single view exported using the configuration management module, the view can be imported on a site of interested by creating a simple custom module and placing the yml file corresponding to the view in /config/install folder (remove the first line containing the uuid ) The view will be imported when activating the module