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.
Hierarchy
- trait \Drupal\Core\Render\Element\CompositeFormElementTrait
File
- core/lib/Drupal/Core/Render/Element/CompositeFormElementTrait.php, line 11
Namespace
Drupal\Core\Render\Element
Members
Name | Modifiers | Type | Description |
---|---|---|---|
CompositeFormElementTrait::preRenderCompositeFormElement | public static | function | Adds form element theming to an element if its title or description is set. |
Please login to continue.