You are here

protected function WebformSubmissionTrait::getWebform in Webform Views Integration 8.5

Retrieve webform on which this handler is set up.

Return value

\Drupal\Core\Entity\EntityInterface Webform on which this handler is set up

File

src/Plugin/views/WebformSubmissionTrait.php, line 33

Class

WebformSubmissionTrait
Trait for webform submission views handlers.

Namespace

Drupal\webform_views\Plugin\views

Code

protected function getWebform() {
  return $this->entityTypeManager
    ->getStorage('webform')
    ->load($this->definition['webform_id']);
}