Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sanitise hyphens when using pattern id as theme hook #270

Closed
wants to merge 0 commits into from

Conversation

gambry
Copy link
Contributor

@gambry gambry commented Sep 5, 2019

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.

src/Definition/PatternDefinition.php Outdated Show resolved Hide resolved
src/Definition/PatternDefinition.php Outdated Show resolved Hide resolved
gambry pushed a commit to gambry/ui_patterns that referenced this pull request Oct 30, 2019
@gambry
Copy link
Contributor Author

gambry commented Oct 30, 2019

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

@gambry
Copy link
Contributor Author

gambry commented Jun 30, 2020

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