You are here

public function WebformUiElementFormBase::getKey in Webform 8.5

Same name and namespace in other branches
  1. 6.x modules/webform_ui/src/Form/WebformUiElementFormBase.php \Drupal\webform_ui\Form\WebformUiElementFormBase::getKey()

Return the render element's key associated with this form.

This method allows form alter hooks to know the element's key, which is not included in the element's properties.

Return value

string The render element's key.

Overrides WebformUiElementFormInterface::getKey

File

modules/webform_ui/src/Form/WebformUiElementFormBase.php, line 506

Class

WebformUiElementFormBase
Provides a base class for webform element webforms.

Namespace

Drupal\webform_ui\Form

Code

public function getKey() {
  return $this->key;
}