Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I am currently making a theme for drupal 8. I would like when someone installs my theme, to automatically install the content types and data that is required to run the theme properly. For example, my main slider relies on a certain content type and data to run. I need when my theme is installing to install those as well.
So mostly I need to know how to run drupal console commands upon theme installation so that I can import with configuration management.