Skip to content

Sanitise hyphens when using pattern id as theme hook#270

Closed
gambry wants to merge 0 commit into
nuvoleweb:8.x-1.xfrom
gambry:8.x-1.x
Closed

Sanitise hyphens when using pattern id as theme hook#270
gambry wants to merge 0 commit into
nuvoleweb:8.x-1.xfrom
gambry:8.x-1.x

Conversation

@gambry

@gambry gambry commented Sep 5, 2019

Copy link
Copy Markdown
Contributor

With #243 we allowed hyphens as pattern id. Although this work perfectly, we haven't fully tested overriding patterns template through theme suggestions.

And indeed if there is a hyphen in the pattern id, overrides are not loaded.

This PR address this bug.

Comment thread src/Definition/PatternDefinition.php Outdated
Comment thread src/Definition/PatternDefinition.php Outdated
gambry pushed a commit to gambry/ui_patterns that referenced this pull request Oct 30, 2019
@gambry

gambry commented Oct 30, 2019

Copy link
Copy Markdown
Contributor Author

I've added the suggested changes + provided some test coverage for the overrides.

@gambry

gambry commented Jun 30, 2020

Copy link
Copy Markdown
Contributor Author

I closed this branch in order to resync fork HEAD with this repo. I issued a new PR: #295 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants