You are here

public function YamlFormToggle::getInfo in YAML Form 8

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

src/Element/YamlFormToggle.php, line 17

Class

YamlFormToggle
Provides a form element for entering a toggle.

Namespace

Drupal\yamlform\Element

Code

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