Project Browser's routes should allow project IDs to contain dashes

Created on 9 January 2024, 11 months ago
Updated 30 January 2024, 10 months ago

Problem/Motivation

Right now, in \Drupal\project_browser\Routing\ProjectBrowserRoutes::routes(), the project_id parameter of various routes needs to conform to a Drupal extension machine name (i.e., it can't contain dashes).

This is fine for Drupal modules and themes, but it won't fly for packages that are not extensions -- specifically, recipes. For recipes, we really need to be able to provide the Composer package name, which is very likely to contain dashes.

Proposed resolution

The project_id parameter should allow dashes in addition to what it already does. This is a one-character change, essentially; machine_name_regex and $stage_id_regex will be the same.

✨ Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States phenaproxima Massachusetts

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