You are here

protected function WebformUiElementDeleteForm::getWebformElementPlugin in Webform 8.5

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

Return the webform element plugin associated with this form.

Return value

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

2 calls to WebformUiElementDeleteForm::getWebformElementPlugin()
WebformUiElementDeleteForm::getDescription in modules/webform_ui/src/Form/WebformUiElementDeleteForm.php
Returns additional text to display as a description.
WebformUiElementDeleteForm::submitForm in modules/webform_ui/src/Form/WebformUiElementDeleteForm.php
Form submission handler.

File

modules/webform_ui/src/Form/WebformUiElementDeleteForm.php, line 286

Class

WebformUiElementDeleteForm
Webform for deleting a webform element.

Namespace

Drupal\webform_ui\Form

Code

protected function getWebformElementPlugin() {
  return $this->elementManager
    ->getElementInstance($this->element);
}