Log in
Interface

NodeListInterface

Magento\PageBuilder\Model\Dom\Adapter\NodeListInterface

What it does

This interface defines a contract for NodeList wrapper classes in PageBuilder's DOM manipulation layer.

It provides methods for iterating through, accessing, and counting DOM nodes in a collection, implementing both Iterator and ArrayAccess patterns.

Developers use this when working with collections of DOM elements returned from PageBuilder content queries or traversals.

Public Methods

  • item()
  • rewind()
  • key()
  • valid()
  • next()
  • current()
  • offsetExists()
  • offsetGet()
  • offsetSet()
  • offsetUnset()
  • count()