Interface
DocumentInterface
Magento\PageBuilder\Model\Dom\Adapter\DocumentInterface
What it does
This interface defines a contract for DOM document adapters in PageBuilder, providing methods to manipulate HTML documents like creating elements, querying selectors, and reading/writing content.
Developers use this when building custom content types or programmatically manipulating PageBuilder HTML structure, as it combines DOM manipulation with stream operations for efficient document handling.
Public Methods
- createDocumentFragment()
- createElement()
- querySelector()
- querySelectorAll()
- saveHTML()
- close()
- detach()
- getSize()
- tell()
- eof()
- isSeekable()
- seek()
- rewind()
- isWritable()
- write()
- isReadable()
- read()
- getContents()
- getMetadata()
- stripHtmlWrapperTags()