trait CompositeFormElementTrait
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\ElementMembers
Name | Modifiers | Type | Description |
---|---|---|---|
CompositeFormElementTrait::preRenderCompositeFormElement | public static | function | Adds form element theming to an element if its title or description is set. |
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Render!Element!CompositeFormElementTrait.php/trait/CompositeFormElementTrait/8.1.x