- Issue created by @trackleft2
- 🇨🇦Canada nedjo
Probably we should be doing this through core's config action API.
The old way of adding permissions dynamically with Configuration Synchronizer support was through the Config Actions Provider → module, which depends on the Config Actions → module. A sample usage is in the Drutopia Article module, which adds several permissions to an existing role.
However, the Config Actions module is deprecated for Drupal 11 with the note on the project page:
Please convert your config actions into the new Recipe system included in Core. No upgrade path from the config_actions modules into Recipes is planned.
The way to do config altering now is via the new config actions support rolled out as part of the core Recipes initiative. (Despite having the same name, these config actions are a completely different implementation than the Config Actions module.) See the developer documentation on core's config actions for details. Recipes that ship with core include config actions adding permissions to a role. An example is the
basic_html_format_editor
recipe.✨ Add support for recipe-provided config Active would be needed for recipe-provided config actions to show up in Configuration Provider.