You are here

protected function WebformSubmissionForm::getSourceEntity in Webform 8.5

Same name and namespace in other branches
  1. 6.x 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.

4 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::getLastSubmission in src/WebformSubmissionForm.php
Get last completed webform submission for the current user.
WebformSubmissionForm::isRoute in src/WebformSubmissionForm.php
Determine if the current request is a specific route (name).

File

src/WebformSubmissionForm.php, line 2979

Class

WebformSubmissionForm
Provides a webform to collect and edit submissions.

Namespace

Drupal\webform

Code

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