Skip to content

Commit

Permalink
apply plugin guide
Browse files Browse the repository at this point in the history
  • Loading branch information
kiy0taka authored and chihiro-adachi committed Jun 15, 2021
1 parent 3e241bf commit 76d1aea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Event/EventLegacy.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,13 @@ public function onRenderProductListBefore(FilterResponseEvent $event)

// 挿入するNodeを生成
$template = $dom->createDocumentFragment();
$template->appendXML(htmlspecialchars($snipet));
$template->appendXML($snipet);
$node = $dom->importNode($template, true);

// 基準となるElementの直後にNodeを挿入し、Responsを書き換え
$navElement->parentNode->insertBefore($node, $navElement->nextSibling);
$newHtml = html_entity_decode($dom->saveHTML(), ENT_NOQUOTES, 'UTF-8');
$response->setContent($newHtml);
$crawler = new Crawler($dom);
$response->setContent($crawler->html());
}
$event->setResponse($response);
log_info('CategoryContent eccube.event.render.product_list.before end');
Expand Down

0 comments on commit 76d1aea

Please sign in to comment.