28 $doc = $block->getDom();
29 $resultList = $doc->querySelectorAll($selector);
31 foreach (
$data as $pos => $value)
33 if (isset($resultList[$pos]) && $value)
35 if (History::isActive())
37 $history =
new History($block->getLandingId(), History::ENTITY_TYPE_LANDING);
38 $history->push(
'EDIT_MAP', [
40 'selector' => $selector,
41 'position' => (
int)$pos,
42 'valueBefore' => $resultList[$pos]->
getAttributes()[self::ATTR_MAP]->getValue(),
43 'valueAfter' => $value,
47 $resultList[$pos]->setAttribute(