public static function WebformRating::processWebformRating in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Element/WebformRating.php \Drupal\webform\Element\WebformRating::processWebformRating()
Expand rating elements.
File
- src/
Element/ WebformRating.php, line 41
Class
- WebformRating
- Provides a webform element for entering a rating.
Namespace
Drupal\webform\ElementCode
public static function processWebformRating(&$element, FormStateInterface $form_state, &$complete_form) {
// Add validate callback.
$element['#element_validate'] = [
[
get_called_class(),
'validateWebformRating',
],
];
return $element;
}