public function PropertyRequired::setValue in Form Builder 7.2
Overrides Property::setValue
File
- modules/
webform/ src/ PropertyRequired.php, line 10
Class
- PropertyRequired
- Special handling for the mandatory -> required rename in webform4.
Namespace
Drupal\form_builder_webformCode
public function setValue(&$component, $value) {
$component['required'] = $value;
// webform 4
$component['mandatory'] = $value;
// webform 3
}