protected function WebformLink::defineDefaultProperties in Webform 8.5
Same name and namespace in other branches
- 6.x 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 25
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;
}