public function WebformScale::getInfo in Webform 8.5
Same name and namespace in other branches
- 6.x src/Element/WebformScale.php \Drupal\webform\Element\WebformScale::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 Radios::getInfo
File
- src/Element/ WebformScale.php, line 19 
Class
- WebformScale
- Provides a webform element for a scale (1-5).
Namespace
Drupal\webform\ElementCode
public function getInfo() {
  return parent::getInfo() + [
    '#min' => 1,
    '#max' => 5,
    '#min_text' => '',
    '#max_text' => '',
    '#scale_size' => 'medium',
    '#scale_type' => 'circle',
    '#scale_text' => 'below',
  ];
}