public function WebformToggles::getInfo in Webform 6.x
Same name and namespace in other branches
- 8.5 modules/webform_toggles/src/Element/WebformToggles.php \Drupal\webform_toggles\Element\WebformToggles::getInfo()
Returns the element properties for this element.
Return value
array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format.
Overrides Checkboxes::getInfo
File
- modules/
webform_toggles/ src/ Element/ WebformToggles.php, line 19
Class
- WebformToggles
- Provides a webform element for toggles.
Namespace
Drupal\webform_toggles\ElementCode
public function getInfo() {
return WebformToggle::getDefaultProperties() + parent::getInfo();
}