You are here

public function WebformSubmissionInterface::getSourceEntity in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/WebformSubmissionInterface.php \Drupal\webform\WebformSubmissionInterface::getSourceEntity()

Gets the webform submission's source entity.

Parameters

bool $translate: (optional) If TRUE the source entity will be translated.

Return value

\Drupal\Core\Entity\EntityInterface|null The entity that this webform submission was created from.

1 method overrides WebformSubmissionInterface::getSourceEntity()
WebformSubmission::getSourceEntity in src/Entity/WebformSubmission.php
Gets the webform submission's source entity.

File

src/WebformSubmissionInterface.php, line 411

Class

WebformSubmissionInterface
Provides an interface defining a webform submission entity.

Namespace

Drupal\webform

Code

public function getSourceEntity($translate = FALSE);