public function WebformElementBase::getTypeName in Webform 8.5
Same name and namespace in other branches
- 6.x src/Plugin/WebformElementBase.php \Drupal\webform\Plugin\WebformElementBase::getTypeName()
Gets the type name (aka id) of the plugin instance with the 'webform_' prefix.
Return value
string The type name of the plugin instance.
Overrides WebformElementInterface::getTypeName
7 calls to WebformElementBase::getTypeName()
- WebformComputedBase::preview in src/
Plugin/ WebformElement/ WebformComputedBase.php - Generate a renderable preview of the element.
- WebformCustomComposite::preview in src/
Plugin/ WebformElement/ WebformCustomComposite.php - Generate a renderable preview of the element.
- WebformElementBase::preview in src/
Plugin/ WebformElementBase.php - Generate a renderable preview of the element.
- WebformHorizontalRule::preview in src/
Plugin/ WebformElement/ WebformHorizontalRule.php - Generate a renderable preview of the element.
- WebformRating::preview in src/
Plugin/ WebformElement/ WebformRating.php - Generate a renderable preview of the element.
File
- src/
Plugin/ WebformElementBase.php, line 532
Class
- WebformElementBase
- Provides a base class for a webform element.
Namespace
Drupal\webform\PluginCode
public function getTypeName() {
return $this->pluginDefinition['id'];
}