You are here

public function WebformElementBase::getDefaultKey in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Plugin/WebformElementBase.php \Drupal\webform\Plugin\WebformElementBase::getDefaultKey()

Gets the element's default key.

Return value

string The element's default key.

Overrides WebformElementInterface::getDefaultKey

1 method overrides WebformElementBase::getDefaultKey()
WebformTableRow::getDefaultKey in src/Plugin/WebformElement/WebformTableRow.php
Gets the element's default key.

File

src/Plugin/WebformElementBase.php, line 539

Class

WebformElementBase
Provides a base class for a webform element.

Namespace

Drupal\webform\Plugin

Code

public function getDefaultKey() {
  return isset($this->pluginDefinition['default_key']) ? $this->pluginDefinition['default_key'] : NULL;
}