-1

My custom module have some configuration at config/install level. Install folder contain yml file of new paragraph and taxonomy. On install of custom module using drush cim -y, its not getting imported. It only import configuration at global site sync level. Do I need to write something on hook install so that configuration get imported ?

6
  • drush cim doesn't install the module default config, the site owner might already have modified or removed it. Only drush en does.
    – 4uk4
    May 18 at 8:26
  • @4uk4 is there any other way through which I can achieve this..
    – Sudha
    May 18 at 9:37
  • 1
    It's unclear what you want to achieve. Why can't you install the module first? If the module is already installed and you just want to add new config then do this in the live config. You can then copy this live config to the install folder if someone wants to install the module later on a different site, but for your site it doesn't matter.
    – 4uk4
    May 18 at 9:45
  • Thanks for the reply. To make it more clear, what I'm aiming for is to have a specific paragraph taxonomy created during the installation of my module using drush cim. Since my site is multisite and the same requirement applies to 20 other sites, I am seeking a solution that allows me to accomplish the setup by simply installing the module on those sites using drush cim command.
    – Sudha
    May 18 at 11:21
  • 1
    Are those sites all cloned ones, having the same site UUID? Then it doesn't matter whether you drush cim on one site or 20. If not, then pack the current config in the module /config/install folder and use drush en on the 20 target sites.
    – 4uk4
    May 18 at 11:49

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.