protected function WebformLink::defineDefaultProperties in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Plugin/WebformElement/WebformLink.php \Drupal\webform\Plugin\WebformElement\WebformLink::defineDefaultProperties()
Define an element's default properties.
Return value
array An associative array contain an the element's default properties.
Overrides WebformCompositeBase::defineDefaultProperties
File
- src/
Plugin/ WebformElement/ WebformLink.php, line 42
Class
- WebformLink
- Provides a 'link' element.
Namespace
Drupal\webform\Plugin\WebformElementCode
protected function defineDefaultProperties() {
$properties = parent::defineDefaultProperties();
// Link does not have select menus.
unset($properties['select2'], $properties['chosed']);
return $properties;
}