ControlGroup
class ControlGroup
Named group of form controls, typically rendered as a fieldset.
Properties
| protected Control,null> | $controls |
Methods
__construct()
No description
add(Container|iterable ...$items)
No description
void
removeOrphans()
Removes controls that are no longer attached to a form.
array
getControls()
Returns all controls in this group.
setOption(string $key, mixed $value)
Sets a rendering option. Options recognized by DefaultFormRenderer:
- 'label' - group label (string or HtmlStringable)
- 'visual' - whether the group is rendered as a visual fieldset
- 'container' - custom container Html element
- 'description' - group description (string or HtmlStringable)
- 'embedNext' - whether to embed the next group inside this group's container
mixed
getOption(string $key)
Returns a rendering option value.
array
getOptions()
Returns all rendering options.
Details
at line 26
__construct()
No description
at line 33
ControlGroup
add(Container|iterable ...$items)
No description
at line 54
void
remove(Control $control)
No description
at line 63
void
removeOrphans()
Removes controls that are no longer attached to a form.
at line 77
array
getControls()
Returns all controls in this group.
at line 95
ControlGroup
setOption(string $key, mixed $value)
Sets a rendering option. Options recognized by DefaultFormRenderer:
- 'label' - group label (string or HtmlStringable)
- 'visual' - whether the group is rendered as a visual fieldset
- 'container' - custom container Html element
- 'description' - group description (string or HtmlStringable)
- 'embedNext' - whether to embed the next group inside this group's container
at line 111
mixed
getOption(string $key)
Returns a rendering option value.
at line 121
array
getOptions()
Returns all rendering options.