TemplateInterface
Magento\PageBuilder\Api\Data\TemplateInterface
What it does
This interface defines the data structure for Page Builder templates in Magento 2.
Developers use it when working with the Template Manager feature to create, retrieve, or manipulate reusable content templates, including their metadata like name, preview images, creation date, and the template content itself.
It provides getter and setter methods for all template properties and supports extension attributes for customization.
Public Methods
- getId()
- setId()
- getName()
- setName()
- getPreviewImage()
- setPreviewImage()
- getPreviewThumbnailImage()
- getTemplate()
- setTemplate()
- getCreatedFor()
- setCreatedFor()
- getUpdatedAt()
- setUpdatedAt()
- getCreatedAt()
- setCreatedAt()
- getExtensionAttributes()
- setExtensionAttributes()