File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -65,10 +65,10 @@ public function __construct(array $definition = []) {
65
65
$ this ->id = $ this ->definition ['id ' ];
66
66
$ this ->setFields ($ this ->definition ['fields ' ]);
67
67
$ this ->setVariants ($ this ->definition ['variants ' ]);
68
- // As we know allow hyphens the pattern ID, we need to sanitise it when
69
- // setting pattern theme hook.
70
- $ hookFriendlyId = str_replace ('- ' , '_ ' , $ this ->id ());
71
- $ this ->setThemeHook (self ::PATTERN_PREFIX . $ hookFriendlyId );
68
+ // As we now allow hyphens in pattern IDs we need to turn them into
69
+ // underscores when setting the theme hook.
70
+ $ hook_friendly_id = str_replace ('- ' , '_ ' , $ this ->id ());
71
+ $ this ->setThemeHook (self ::PATTERN_PREFIX . $ hook_friendly_id );
72
72
73
73
if (!empty ($ definition ['theme hook ' ])) {
74
74
$ this ->setThemeHook ($ definition ['theme hook ' ]);
You can’t perform that action at this time.
0 commit comments