CompositeFormElementTrait
trait CompositeFormElementTrait (View source)
Provides a trait for radios, checkboxes, and similar composite form elements.
Any form element that is comprised of several distinct parts can use this trait to add support for a composite title or description.
Methods
static
preRenderCompositeFormElement($element)
Adds form element theming to an element if its title or description is set.
Details
static
preRenderCompositeFormElement($element)
Adds form element theming to an element if its title or description is set.
This is used as a pre render function for checkboxes and radios.