class PropertyRequired in Form Builder 7.2
Special handling for the mandatory -> required rename in webform4.
Hierarchy
- class \Drupal\form_builder\PropertyBase implements PropertyInterface
- class \Drupal\form_builder_webform\Property
- class \Drupal\form_builder_webform\PropertyRequired
- class \Drupal\form_builder_webform\Property
Expanded class hierarchy of PropertyRequired
1 file declares its use of PropertyRequired
- form_builder_webform.module in modules/
webform/ form_builder_webform.module - Form Builder integration for the Webform module.
File
- modules/
webform/ src/ PropertyRequired.php, line 8
Namespace
Drupal\form_builder_webformView source
class PropertyRequired extends Property {
public function setValue(&$component, $value) {
$component['required'] = $value;
// webform 4
$component['mandatory'] = $value;
// webform 3
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Property:: |
protected | property | ||
Property:: |
public | function | Generate form-API elements for editing this property. | |
Property:: |
public | function | Read the value from a component array. | |
Property:: |
public | function |
Construct a new instance of this property class. Overrides PropertyBase:: |
|
PropertyBase:: |
protected | property | 1 | |
PropertyBase:: |
protected | property | 1 | |
PropertyBase:: |
protected | property | 1 | |
PropertyBase:: |
public | function |
Submit handler for the editing form(). Overrides PropertyInterface:: |
1 |
PropertyRequired:: |
public | function |
Overrides Property:: |