You are here

public function WebformElementBase::getTypeName in Webform 8.5

Same name and namespace in other branches
  1. 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.

... See full list

File

src/Plugin/WebformElementBase.php, line 532

Class

WebformElementBase
Provides a base class for a webform element.

Namespace

Drupal\webform\Plugin

Code

public function getTypeName() {
  return $this->pluginDefinition['id'];
}