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 = []):string

Render the template of the widget twice to get the final markup to be displayed in the preview of the builder.

Parameters

Name

Type

Description

$widgetSettings

array

$children

array

public render($widgetSettings = [], $children = []):string

Render the template of the widget. Returns a twig-template which will be included in the frontend or rendered again for generating the preview.

Parameters

Name

Type

Description

$widgetSettings

array

$children

array