27 $doc = $block->getDom();
28 $resultList = $doc->querySelectorAll($selector);
29 $valueBefore = static::getNode($block, $selector);
31 foreach ($data as $pos => $value)
33 $classList = (isset($value[
'classList']) && is_array($value[
'classList']))
36 $className = implode(
' ', $classList);
38 if (isset($value[
'url']))
40 $url = is_array($value[
'url'])
41 ? json_encode($value[
'url'])
51 if (isset($resultList[$pos]))
53 $resultList[$pos]->setAttribute(
'class', $className);
56 $resultList[$pos]->setAttribute(
'data-pseudo-url', $url);
62 $history->push(
'EDIT_ICON', [
64 'selector' => $selector,
65 'position' => (
int)$pos,
66 'valueBefore' => $valueBefore[$pos],
67 'valueAfter' => $value,