Multisite / hook_install()
fogsag opened this issue · 1 comments
I am trying to get openideal working in a multisite setup with configuration split.
For example a setup like this https://www.srijan.net/resources/blog/managing-multi-site-configurations-in-drupal-8-part-ii
But it does not work, for example configuration split. Here some information why:
See https://www.hashbangcode.com/article/drupal-8-multi-site-configuration-configuration-split :
"One word of warning if you are doing this is not to have a install profile with a hook_install() hook as this currently isn't supported in Drupal 8.6.3. If you've installed using the Standard profile (or similar) then you can modify the install profile used in core.extension.yml to remove any mention of the standard profile."
This is also the reason why extending with "base profile" does not work. See
https://www.drupal.org/project/drupal/issues/2982052
drush-ops/drush#2953
Same problem appears when installing a subsite with: drush si --existing-config
Also documented here https://www.drupal.org/docs/distributions/creating-distributions/how-to-write-a-drupal-installation-profile
Does anybody know what is the best/standard/transparent way for customizing a distribution? (without loosing the "automatic" update functionality)
PS:
-
Features module is not recommended by the author and making a feature with existing configuration does not work because of this:
https://qastack.com.de/drupal/208016/unable-to-install-already-exist-in-active-configuration -
I hope there is a better/simpler way than using something like this:
https://github.com/pantheon-systems/drush-config-workflow
https://www.drupal.org/project/config_actions -
Other info:
https://bkosborne.com/blog/overriding-module-configuration-drupal-8-installation-profile-some-gotchas
Lot of research but the only reliable way i see is to customize the profile directly. Create or customize modules, themes and config in profiles/contrib/idea