public function WebformToggle::getInfo in Webform 6.x
Same name and namespace in other branches
- 8.5 modules/webform_toggles/src/Element/WebformToggle.php \Drupal\webform_toggles\Element\WebformToggle::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 Checkbox::getInfo
File
- modules/
webform_toggles/ src/ Element/ WebformToggle.php, line 17
Class
- WebformToggle
- Provides a webform element for entering a toggle.
Namespace
Drupal\webform_toggles\ElementCode
public function getInfo() {
return static::getDefaultProperties() + parent::getInfo();
}