You are here

public function WebformToggle::getInfo in Webform 8.5

Same name and namespace in other branches
  1. 6.x 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\Element

Code

public function getInfo() {
  return static::getDefaultProperties() + parent::getInfo();
}