Model
StringMap
Magento\PageBuilder\Model\Dom\StringMap
What it does
This class is a wrapper around PhpGt's DOMStringMap that provides access to HTML element dataset attributes (data-* attributes) in Page Builder.
Developers use this to read, write, check existence, and remove data attributes on DOM elements when working with Page Builder content manipulation, making it compatible with Magento's object manager and dependency injection.
Public Methods
- offsetExists()
- offsetGet()
- offsetSet()
- offsetUnset()