Skip to main content

FormRow


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

Properties​

options​

protected $options

rowElementHelper​

Form label helper instance

protected null|\TwbsHelper\Form\View\Helper\FormRowElement $rowElementHelper

Methods​

__construct​

Constructor

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

Parameters:

ParameterTypeDescription
$moduleOptions\TwbsHelper\Options\ModuleOptions

render​

public render(\Laminas\Form\ElementInterface $element, string|null $labelPosition = null): string

Parameters:

ParameterTypeDescription
$element\Laminas\Form\ElementInterface
$labelPositionstring|null

renderPartial​

protected renderPartial(\Laminas\Form\ElementInterface $element, string|null $labelPosition = null): string

Parameters:

ParameterTypeDescription
$element\Laminas\Form\ElementInterface
$labelPositionstring|null

renderFormRow​

public renderFormRow(\Laminas\Form\ElementInterface $element, string $elementContent): string

Parameters:

ParameterTypeDescription
$element\Laminas\Form\ElementInterface
$elementContentstring

getElementRowClasses​

protected getElementRowClasses(\Laminas\Form\ElementInterface $element): array

Parameters:

ParameterTypeDescription
$element\Laminas\Form\ElementInterface

elementIsLayout​

protected elementIsLayout(\Laminas\Form\ElementInterface $element, string $layout): mixed

Parameters:

ParameterTypeDescription
$element\Laminas\Form\ElementInterface
$layoutstring

renderElement​

protected renderElement(\Laminas\Form\ElementInterface $element, string $labelPosition = null): string

Parameters:

ParameterTypeDescription
$element\Laminas\Form\ElementInterface
$labelPositionstring

Throws:

  • DomainException

getFormRowElementHelper​

Retrieve the FormRowElement helper

protected getFormRowElementHelper(): \TwbsHelper\Form\View\Helper\FormRowElement

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