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:
| Parameter | Type | Description |
|---|---|---|
$moduleOptions | \TwbsHelper\Options\ModuleOptions |
render
public render(\Laminas\Form\ElementInterface $element, string|null $labelPosition = null): string
Parameters:
| Parameter | Type | Description |
|---|---|---|
$element | \Laminas\Form\ElementInterface | |
$labelPosition | string|null |
renderPartial
protected renderPartial(\Laminas\Form\ElementInterface $element, string|null $labelPosition = null): string
Parameters:
| Parameter | Type | Description |
|---|---|---|
$element | \Laminas\Form\ElementInterface | |
$labelPosition | string|null |
renderFormRow
public renderFormRow(\Laminas\Form\ElementInterface $element, string $elementContent): string
Parameters:
| Parameter | Type | Description |
|---|---|---|
$element | \Laminas\Form\ElementInterface | |
$elementContent | string |
getElementRowClasses
protected getElementRowClasses(\Laminas\Form\ElementInterface $element): array
Parameters:
| Parameter | Type | Description |
|---|---|---|
$element | \Laminas\Form\ElementInterface |
elementIsLayout
protected elementIsLayout(\Laminas\Form\ElementInterface $element, string $layout): mixed
Parameters:
| Parameter | Type | Description |
|---|---|---|
$element | \Laminas\Form\ElementInterface | |
$layout | string |
renderElement
protected renderElement(\Laminas\Form\ElementInterface $element, string $labelPosition = null): string
Parameters:
| Parameter | Type | Description |
|---|---|---|
$element | \Laminas\Form\ElementInterface | |
$labelPosition | string |
Throws:
DomainException
getFormRowElementHelper
Retrieve the FormRowElement helper
protected getFormRowElementHelper(): \TwbsHelper\Form\View\Helper\FormRowElement
Inherited methods
prepareAttributes
protected prepareAttributes(array $attributes): array
Parameters:
| Parameter | Type | Description |
|---|---|---|
$attributes | array |
setClassesToElement
protected setClassesToElement(\Laminas\Form\ElementInterface $element, iterable $addClasses = [], iterable $removeClasses = []): \Laminas\Form\ElementInterface
Parameters:
| Parameter | Type | Description |
|---|---|---|
$element | \Laminas\Form\ElementInterface | |
$addClasses | iterable | |
$removeClasses | iterable |