public static function WebformOtherBase::getElementType in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Element/WebformOtherBase.php \Drupal\webform\Element\WebformOtherBase::getElementType()
Get the element type.
Return value
string The element type.
2 calls to WebformOtherBase::getElementType()
- WebformOtherBase::processValue in src/
Element/ WebformOtherBase.php - Processed other element's submitted value.
- WebformOtherBase::validateWebformOther in src/
Element/ WebformOtherBase.php - Validates an other element.
File
- src/
Element/ WebformOtherBase.php, line 310
Class
- WebformOtherBase
- Base class for webform other element.
Namespace
Drupal\webform\ElementCode
public static function getElementType() {
// Remove 'webform_' prefix from type.
return str_replace('webform_', '', static::$type);
}