Recipe + Config Actions integration

Created on 19 August 2025, about 2 months ago

Problem/Motivation

The relatively new (and still experimental) Config Action API can't access the existing methods in this module to execute config:actions: in recipes.

Proposed resolution

Integrate the Recipes Initiative with this module so sitemaps can be defined, queued up, and generated from a recipe.

  • Add new SimpleSitemapGenerate class to define the new config action.
  • Add #ActionMethod (PHP) attributes to Generator class to register the generate, rebuildQueue methods for config actions.

Remaining tasks

  • Address base_url issue πŸ› Sitemap not displaying if site in subdirectory Fixed so that when a recipe rebuilds sitemaps from the CLI, the XML's links have the correct base URLs set. (My custom workaround - using a recipe "input:" and hook_install() to set the base URL manually - is a separate possible issue and may not work for everyone.)
  • Update the README for this module to explain how to include a basic recipe -> config:actions: snippet and in a recipe.yml file, if desired.
✨ Feature request
Status

Active

Version

4.2

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States aubjr_drupal

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024