Log in
Interface

HtmlCollectionInterface

Magento\PageBuilder\Model\Dom\Adapter\HtmlCollectionInterface

What it does

This interface defines a contract for HTML collection wrappers in Page Builder, providing methods to access and iterate through DOM elements.

It implements Iterator, ArrayAccess, and Countable interfaces, allowing developers to work with collections of HTML elements using array syntax, foreach loops, and standard collection operations like searching by name or index.

Public Methods

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