- Issue created by @duaelfr
- Merge request !381Issue #3525566: [2.0.x] Keep patterns directory structure when converting them to components → (Merged) created by duaelfr
- 🇫🇷France duaelfr Montpellier, France
There you go.
Patch attached for composer users. - 🇫🇷France pdureau Paris
Great find! We can merge this ASAP.
However, would it be possible to not hardcode
/templates/patterns/
$component_path = str_replace('/templates/patterns/', '/components/', $legacy_definition['base path']);
UI Patterns 1.x components can be found in other places.
- 🇫🇷France duaelfr Montpellier, France
@pdureau Thanks for the review.
Do you have some examples of other locations where patterns can be found? How can this be dynamically determined? - 🇫🇷France G4MBINI Bègles
Those one are already SDC but can give ideas maybe ?
- 🇫🇷France duaelfr Montpellier, France
New attempt to fix the issue.
Patch for composer attached. - 🇫🇷France pdureau Paris
Looks good to me. I will ask another maintainer to review.
But before, little cspells fix expected: https://git.drupalcode.org/project/ui_patterns/-/jobs/5325802
- 🇫🇷France duaelfr Montpellier, France
Done (no need for a new patch as it's only a typo in a comment).
Automatically closed - issue fixed for 2 weeks with no activity.