Commit 9c0b075
authored
fix(layered-nav): Fix MetaRobotsPlugin calling getLayout() on invalid result type
Resolved an error where MetaRobotsPlugin was calling getLayout() on result objects
that don't implement this method. Added defensive checks to verify layout object
exists before attempting to access blocks.
Error fixed: "Call to undefined method Magento\Framework\Controller\Result\Forward\Interceptor::getLayout()"1 file changed
+8
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
91 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
92 | 97 | | |
93 | 98 | | |
94 | 99 | | |
95 | 100 | | |
96 | 101 | | |
97 | | - | |
| 102 | + | |
0 commit comments