Plentymarkets interface documentation
ContentBuilder
Contracts
Widget
This contract is deprecated. Use Plenty\Modules\ShopBuilder\Contracts\Widget instead.
Namespace
Plenty\Modules\ContentBuilder\Contracts
Methods
public getPreview($widgetSettings = [], $children = []):stringRender the template of the widget twice to get the final markup to be displayed in the preview of the builder.
| Name | Type | Description | 
| 
 | ||
| 
 | 
public render($widgetSettings = [], $children = []):stringRender the template of the widget. Returns a twig-template which will be included in the frontend or rendered again for generating the preview.
| Name | Type | Description | 
| 
 | ||
| 
 | 
            Thank you for your feedback!