Collection
HtmlCollection
Magento\PageBuilder\Model\Dom\HtmlCollection
What it does
This class wraps the PhpGt DOM NodeList to provide an iterable collection of HTML elements in Page Builder.
Developers use it when working with multiple DOM elements returned from queries, allowing them to loop through elements, access them by index or name, and perform standard collection operations like counting.
Public Methods
- namedItem()
- item()
- rewind()
- key()
- valid()
- next()
- current()
- offsetExists()
- offsetGet()
- offsetSet()
- offsetUnset()
- count()