public function WebformElementBase::getFormElementClassDefinition in Webform 8.5
Same name and namespace in other branches
- 6.x src/Plugin/WebformElementBase.php \Drupal\webform\Plugin\WebformElementBase::getFormElementClassDefinition()
Get the Webform element's form element class definition.
We use the plugin's base id here to support plugin derivatives.
Return value
string A form element class definition.
Overrides WebformElementInterface::getFormElementClassDefinition
10 calls to WebformElementBase::getFormElementClassDefinition()
- OptionsBase::getElementSelectorInputValue in src/
Plugin/ WebformElement/ OptionsBase.php - Get an element's (sub)input selector value.
- WebformAttachmentBase::formatHtmlItem in modules/
webform_attachment/ src/ Plugin/ WebformElement/ WebformAttachmentBase.php - Format an element's value as HTML.
- WebformAttachmentBase::formatTextItem in modules/
webform_attachment/ src/ Plugin/ WebformElement/ WebformAttachmentBase.php - Format an element's value as text.
- WebformAttachmentBase::getAttachments in modules/
webform_attachment/ src/ Plugin/ WebformElement/ WebformAttachmentBase.php - Get email attachments.
- WebformCompositeBase::getCompositeElements in src/
Plugin/ WebformElement/ WebformCompositeBase.php - Get composite element.
File
- src/
Plugin/ WebformElementBase.php, line 488
Class
- WebformElementBase
- Provides a base class for a webform element.
Namespace
Drupal\webform\PluginCode
public function getFormElementClassDefinition() {
$definition = $this->elementInfo
->getDefinition($this
->getBaseId());
return $definition['class'];
}