You are here

protected function WebformSubmissionForm::getSourceEntity in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/WebformSubmissionForm.php \Drupal\webform\WebformSubmissionForm::getSourceEntity()

Get the webform submission's source entity.

Return value

\Drupal\Core\Entity\EntityInterface The webform submission's source entity.

3 calls to WebformSubmissionForm::getSourceEntity()
WebformSubmissionForm::displayMessages in src/WebformSubmissionForm.php
Display draft, previous submission, and autofill status messages for this webform submission.
WebformSubmissionForm::getCustomForm in src/WebformSubmissionForm.php
Get custom webform which is displayed instead of the webform's elements.
WebformSubmissionForm::isRoute in src/WebformSubmissionForm.php
Determine if the current request is a specific route (name).

File

src/WebformSubmissionForm.php, line 2965

Class

WebformSubmissionForm
Provides a webform to collect and edit submissions.

Namespace

Drupal\webform

Code

protected function getSourceEntity() {
  return $this->sourceEntity;
}