File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -1302,14 +1302,15 @@ protected function handleSlots(DOMElement $node): void
1302
1302
1303
1303
$ slotName = Slot::SLOT_PREFIX ;
1304
1304
$ slotName .= $ node ->getAttribute ('name ' ) ? $ node ->getAttribute ('name ' ) : Slot::SLOT_DEFAULT_NAME ;
1305
+ $ slotFallbackKey = $ slotName . '_fallback ' ;
1305
1306
1306
1307
if ($ slotFallback ) {
1307
- if (isset ($ this ->slotFallbackCounter [$ slotName . ' _fallback ' ])) {
1308
- ++$ this ->slotFallbackCounter [$ slotName . ' _fallback ' ];
1309
- $ slotFallbackName = $ slotName . '_fallback_ ' . $ this ->slotFallbackCounter [$ slotName . ' _fallback ' ];
1308
+ if (isset ($ this ->slotFallbackCounter [$ slotFallbackKey ])) {
1309
+ ++$ this ->slotFallbackCounter [$ slotFallbackKey ];
1310
+ $ slotFallbackName = $ slotFallbackKey . '_ ' . $ this ->slotFallbackCounter [$ slotFallbackKey ];
1310
1311
} else {
1311
- $ this ->slotFallbackCounter [$ slotName . ' _fallback ' ] = 1 ;
1312
- $ slotFallbackName = $ slotName . ' _fallback ' ;
1312
+ $ this ->slotFallbackCounter [$ slotFallbackKey ] = 1 ;
1313
+ $ slotFallbackName = $ slotFallbackKey ;
1313
1314
}
1314
1315
$ this ->addVariable ($ slotFallbackName , $ slotFallback );
1315
1316
$ variable = $ this ->builder ->createVariableOutput ($ slotName , $ slotFallbackName );
You can’t perform that action at this time.
0 commit comments