Log in
Interface

TokenListInterface

Magento\PageBuilder\Model\Dom\Adapter\TokenListInterface

What it does

This interface defines a contract for managing space-separated tokens in DOM element attributes (like CSS classes).

Developers use implementations of this interface in Page Builder to programmatically add, remove, toggle, or check for specific tokens in attribute values, similar to JavaScript's DOMTokenList API used for classList manipulation.

Public Methods

  • item()
  • contains()
  • add()
  • remove()
  • toggle()