interface FormViewInterface implements ViewInterface (View source)

Methods

getContext()

No description

getScopeItems()

No description

bool
isRequired()

Whether the form control is required in the current form

string
getLabel()

Returns the label for the current form control.

setLabel($label)

Sets the label for the current form control.

bool
supportsLabel()

Returns true if the current form control supports labeling.

string|null
getControlID()

Returns the ID of the current form control – may return null if the form control doesn't need it.

Details

RendererInterface getControlRenderer()

Return Value

RendererInterface

TemplateLocator createTemplateLocator()

Return Value

TemplateLocator

ContextInterface getContext()

Return Value

ContextInterface

getScopeItems()

bool isRequired()

Whether the form control is required in the current form

Return Value

bool

string getLabel()

Returns the label for the current form control.

Return Value

string

setLabel($label)

Sets the label for the current form control.

Parameters

$label

bool supportsLabel()

Returns true if the current form control supports labeling.

Return Value

bool

string|null getControlID()

Returns the ID of the current form control – may return null if the form control doesn't need it.

Return Value

string|null