You are here

public function WebformUiElementFormBase::getWebformElementPlugin 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::getWebformElementPlugin()

Return the webform element associated with this form.

Return value

\Drupal\webform\Plugin\WebformElementInterface A webform element.

Overrides WebformUiElementFormInterface::getWebformElementPlugin

9 calls to WebformUiElementFormBase::getWebformElementPlugin()
WebformUiElementAddForm::buildForm in modules/webform_ui/src/Form/WebformUiElementAddForm.php
Form constructor.
WebformUiElementEditForm::buildForm in modules/webform_ui/src/Form/WebformUiElementEditForm.php
Form constructor.
WebformUiElementFormBase::buildForm in modules/webform_ui/src/Form/WebformUiElementFormBase.php
Form constructor.
WebformUiElementFormBase::getDefaultKey in modules/webform_ui/src/Form/WebformUiElementFormBase.php
Get the default key for the current element.
WebformUiElementFormBase::getDefaultValue in modules/webform_ui/src/Form/WebformUiElementFormBase.php
Get updated default value for an element.

... See full list

1 method overrides WebformUiElementFormBase::getWebformElementPlugin()
WebformUiElementTestForm::getWebformElementPlugin in modules/webform_ui/src/Form/WebformUiElementTestForm.php
Return the webform element associated with this form.

File

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

Class

WebformUiElementFormBase
Provides a base class for webform element webforms.

Namespace

Drupal\webform_ui\Form

Code

public function getWebformElementPlugin() {
  return $this->elementManager
    ->getElementInstance($this->element, $this
    ->getWebform());
}