NodeList
Magento\PageBuilder\Model\Dom\NodeList
What it does
This class wraps the PhpGt DOM NodeList to provide a Magento-specific interface for working with collections of DOM nodes in PageBuilder content.
Developers use this when iterating through or accessing multiple HTML elements returned from DOM queries, such as finding all elements with a specific class or tag.
It implements Iterator, ArrayAccess, and Countable interfaces to allow foreach loops, array-style access, and counting operations on DOM node collections.
Public Methods
- item()
- rewind()
- key()
- valid()
- next()
- current()
- offsetExists()
- offsetGet()
- offsetSet()
- offsetUnset()
- count()