Plentymarkets interface documentation

Templates

Contracts

MailTemplateWidgetRepositoryContract

Register mail builder widgets.

Namespace

Plenty\Modules\Mail\Templates\Contracts

Methods
public registerWidget($widgetClass):void

Register a widget to be available in the mail builder.

Parameters

Name

Type

Description

$widgetClass

string

public overrideWidget($widgetIdentifier, $overrideWidget):void

Override a widget class to extend data or settings of the widget.

Parameters

Name

Type

Description

$widgetIdentifier

string

The identifier of the original widget to override

$overrideWidget

string

The class of the new class to get information of the widget from.