Log in
Interface

DocumentFragmentInterface

Magento\PageBuilder\Model\Dom\Adapter\DocumentFragmentInterface

What it does

This interface defines the contract for DOM document fragment adapters in PageBuilder, allowing manipulation of HTML fragments through methods like appending HTML, querying elements by CSS selectors, and retrieving text content.

Developers use this when working with PageBuilder's HTML content processing to parse and manipulate HTML fragments before rendering or saving page content.

Public Methods

  • appendHTML()
  • querySelector()
  • querySelectorAll()
  • propGetInnerText()