BaseWidget

Namespace

Ceres\Widgets\Helper

Implements
Constants
Type Name Value Description

array

TOOLBAR_LAYOUT

['','bold,italic,underline,strike

h1,h2,h3

align

translation','bold,italic,underline,strike

headline

link

align,ul,ol

color,background

translation']

Properties
Type Name Description

``

$mapTypeToTemplate

string

$template

The template to be used for this widget

Twig

$twig

Application

$app

string

$pluginNamespace

Methods
public __construct()
public getData():array

Get basic information about the widget. Possible fields are - identifier - label - previewImageURL - type - categories - position

public getSettings():array

Return the structure of the settings for the widget

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

Get the html representation of the widget.

Parameters

Type

Name

Description

array

$widgetSettings

array

$children

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

Render the template of the widget.

Parameters

Type

Name

Description

array

$widgetSettings

array

$children

public mockPaginatedResult()