protected function WebformSame::defineDefaultProperties in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Plugin/WebformElement/WebformSame.php \Drupal\webform\Plugin\WebformElement\WebformSame::defineDefaultProperties()
Define an element's default properties.
Return value
array An associative array contain an the element's default properties.
Overrides Checkbox::defineDefaultProperties
File
- src/
Plugin/ WebformElement/ WebformSame.php, line 24
Class
- WebformSame
- Provides a 'webform_same' element.
Namespace
Drupal\webform\Plugin\WebformElementCode
protected function defineDefaultProperties() {
$properties = [
'source' => '',
'destination' => '',
'destination_state' => 'visible',
] + parent::defineDefaultProperties();
unset($properties['required'], $properties['required_error']);
return $properties;
}