Backend\Traits\WidgetMaker

Overview

WidgetMaker Trait

Adds widget based methods to a controller class, or a class that contains a $controller property referencing a controller.


Public Methods

public getWidget()

public getWidget($name): void

public makeFormWidget()

public makeFormWidget(
    string $class,
    mixed $fieldConfig = [],
    array $widgetConfig = []
): Backend\Classes\FormWidgetBase 

makeFormWidget object with the supplied form field and widget configuration.

public makeWidget()

public makeWidget(
    string $class,
    array $widgetConfig = []
): Backend\Classes\WidgetBase 

makeWidget object with the supplied configuration file.