Skip to main content

FormElement


  • Full name: \TwbsHelper\Form\View\Helper\FormElement
  • Parent class: FormElement

Properties

options

protected $options

classMap

protected $classMap

Methods

__construct

Constructor

public __construct(\TwbsHelper\Options\ModuleOptions $options): void

Parameters:

ParameterTypeDescription
$options\TwbsHelper\Options\ModuleOptions

render

Render an element

public render(\Laminas\Form\ElementInterface $element): string

Parameters:

ParameterTypeDescription
$element\Laminas\Form\ElementInterface

renderHelper

Render element by helper name

protected renderHelper(string $name, \Laminas\Form\ElementInterface $element): string

Parameters:

ParameterTypeDescription
$namestring
$element\Laminas\Form\ElementInterface

Inherited methods

prepareAttributes

protected prepareAttributes(array $attributes): array

Parameters:

ParameterTypeDescription
$attributesarray

setClassesToElement

protected setClassesToElement(\Laminas\Form\ElementInterface $element, iterable $addClasses = [], iterable $removeClasses = []): \Laminas\Form\ElementInterface

Parameters:

ParameterTypeDescription
$element\Laminas\Form\ElementInterface
$addClassesiterable
$removeClassesiterable