You are here

public function YamlFormElementBase::getTypeName in YAML Form 8

Gets the type name (aka id) of the plugin instance with the 'yamlform_' prefix.

Return value

string The type name of the plugin instance.

Overrides YamlFormElementInterface::getTypeName

File

src/YamlFormElementBase.php, line 245

Class

YamlFormElementBase
Provides a base class for a form element.

Namespace

Drupal\yamlform

Code

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