We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90200f6 commit 4810c1dCopy full SHA for 4810c1d
lib/internal/Magento/Framework/View/Model/Layout/Merge.php
@@ -462,6 +462,21 @@ public function load($handles = [])
462
return $this;
463
}
464
465
+ // Walk all updates and extract handles before the merge step.
466
+ foreach ($this->updates as $update) {
467
+ $updateXml = null;
468
+
469
+ try {
470
+ $updateXml = $this->_loadXmlString($update);
471
+ } catch (\Exception $exception) {
472
+ // ignore invalid
473
+ }
474
475
+ if ($updateXml && strtolower($updateXml->getName()) == 'update' && isset($updateXml['handle'])) {
476
+ $this->addHandle((string)$updateXml['handle']);
477
478
479
480
foreach ($this->getHandles() as $handle) {
481
$this->_merge($handle);
482
0 commit comments