Yes. I think the best option would be manage your View in code (represented as a custom module). See this blogpost for an example.
Drupal views in installation profile
-
30-06-2022 - |
Question
Is there a possibility to configure/create views in an installation profile? I have been searching on the internet for quite some time now but I can't find any info about this.
Solution
OTHER TIPS
Yes. You can use Features module to export your view In a module and just enable this module in installation profile, or you can rather implement hook_views_default_views and have a default view exported in code.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow