Skip to main content
5 events
when toggle format what by license comment
Feb 9, 2018 at 6:23 comment added Alex Skrypnyk @lexicant your solution will not work if you need to, say, assign permissions to existing roles already exported as config. Drupal 8 does not allow to use partial configs. So using install hooks should be correct answer. Unfortunately, thus specific answer does not have an example code.
Aug 19, 2016 at 15:53 comment added lexicant yep! In d8 hook_install tends to be for things that are based on vars available after bootstrap
Aug 19, 2016 at 15:50 comment added Raf Fair enough. My solution actually works for Drupal 8 too (the links go to the D8 versions of those hooks), but your option is preferable if it cleans up after uninstalling the module as well.
Aug 19, 2016 at 15:46 comment added lexicant This is correct for drupal 7, however in drupal 8 you can place them in <modulename>/src/config/install for things stored in active config.
Aug 19, 2016 at 15:23 history answered Raf CC BY-SA 3.0