You are here

public function WebformElementBase::getFormElementClassDefinition in Webform 6.x

Same name and namespace in other branches
  1. 8.5 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::getEmailAttachments in modules/webform_attachment/src/Plugin/WebformElement/WebformAttachmentBase.php
Get files as email attachments.
WebformCompositeBase::getCompositeElements in src/Plugin/WebformElement/WebformCompositeBase.php
Get composite element.

... See full list

File

src/Plugin/WebformElementBase.php, line 416

Class

WebformElementBase
Provides a base class for a webform element.

Namespace

Drupal\webform\Plugin

Code

public function getFormElementClassDefinition() {
  $definition = $this->elementInfo
    ->getDefinition($this
    ->getBaseId());
  return $definition['class'];
}