How do I re-create a built-in view?
-
28-02-2021 - |
Question
I duplicated a view before making changes, but it didn't save and I'd changed most of the view settings before I realised I was working on the original.
How can I recreate the standard taxonomy view?
I am using Drupal 9, if that makes a difference.
Solution
- Export your current config using
drush cex -y
- Copy/paste the
/web/core/modules/taxonomy/config/optional/views.view.taxonomy_term.yml
into your config directory (usually/config
) - Import the config using
drush cim -y
Licensed under: CC-BY-SA with attribution
Not affiliated with drupal.stackexchange