Backend\Widgets\Form\HasFormWidgets

Overview

HasFormWidgets concern


Protected Properties

protected array $formWidgets

formWidgets collection of all form widgets used in this form.

protected Backend\Classes\WidgetManager $widgetManager


Public Methods

public getFormWidget()

public getFormWidget(string $field): void

getFormWidget returns a specified form widget

public getFormWidgets()

public getFormWidgets(): array 

getFormWidgets for the instance

public nameToId()

public nameToId($input $input): string 

nameToId is a helper method to convert a field name to a valid ID attribute

Protected Methods

protected initFormWidgetsConcern()

protected initFormWidgetsConcern(): void

protected isFormWidget()

protected isFormWidget($fieldType): bool 

isFormWidget checks if a field type is a widget or not

protected makeFormFieldWidget()

protected makeFormFieldWidget($field): Backend\Classes\FormWidgetBase|null 

makeFormFieldWidget object from a form field object