You are here

public function WebformSubmissionForm::getWebform in Webform 8.5

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

Get the webform submission's webform.

Return value

\Drupal\webform\WebformInterface A webform.

9 calls to WebformSubmissionForm::getWebform()
WebformSubmissionForm::attachLibraries in src/WebformSubmissionForm.php
Attach libraries to the form.
WebformSubmissionForm::buildForm in src/WebformSubmissionForm.php
Form constructor.
WebformSubmissionForm::checkTotalLimit in src/WebformSubmissionForm.php
Check webform submission total limits.
WebformSubmissionForm::checkUserLimit in src/WebformSubmissionForm.php
Check webform submission user limit.
WebformSubmissionForm::displayMessages in src/WebformSubmissionForm.php
Display draft, previous submission, and autofill status messages for this webform submission.

... See full list

File

src/WebformSubmissionForm.php, line 2967

Class

WebformSubmissionForm
Provides a webform to collect and edit submissions.

Namespace

Drupal\webform

Code

public function getWebform() {

  /** @var \Drupal\webform\WebformSubmissionInterface $webform_submission */
  $webform_submission = $this
    ->getEntity();
  return $webform_submission
    ->getWebform();
}