Class FormElement

Summary

Fully Qualified Name: Laminas\Form\View\Helper\FormElement
Extends: AbstractHelper

Description

Methods

Name Description Defined By
__invoke() Invoke helper as function FormElement
addClass() Add instance class to plugin map FormElement
addType() Add form element type to plugin map FormElement
getView() Get the view object AbstractHelper
render() Render an element FormElement
setDefaultHelper() Set default helper name FormElement
setView() Set the View object AbstractHelper

Method Details

__invoke()

Invoke helper as function

Proxies to {@link render()}.

Parameter Name Type Description
$element \ElementInterface|null

Returns: string

addClass()

Add instance class to plugin map

Parameter Name Type Description
$class string
$plugin string

Returns: $this

addType()

Add form element type to plugin map

Parameter Name Type Description
$type string
$plugin string

Returns: $this

getView()

Get the view object

Returns: null|\Renderer

render()

Render an element

Introspects the element type and attributes to determine which helper to utilize when rendering.

Parameter Name Type Description
$element \ElementInterface

Returns: string

setDefaultHelper()

Set default helper name

Parameter Name Type Description
$name string

Returns: $this

setView()

Set the View object

Parameter Name Type Description
$view \Renderer

Returns: \AbstractHelper

Top