protected function WebformSubmissionField::getWebformElementPlugin in Webform Views Integration 8.5
Retrieve webform element plugin instance.
Return value
\Drupal\webform\Plugin\WebformElementInterface Webform element plugin instance that corresponds to the webform element of this view field
File
- src/
Plugin/ views/ field/ WebformSubmissionField.php, line 169
Class
- WebformSubmissionField
- Webform submission field.
Namespace
Drupal\webform_views\Plugin\views\fieldCode
protected function getWebformElementPlugin() {
$webform = $this->entityTypeManager
->getStorage('webform')
->load($this->definition['webform_id']);
$element = $webform
->getElement($this->definition['webform_submission_field']);
return $this->webformElementManager
->getElementInstance($element);
}