public function WebformSubmissionForm::getWebform in Webform 8.5
Same name and namespace in other branches
- 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.
File
- src/
WebformSubmissionForm.php, line 2967
Class
- WebformSubmissionForm
- Provides a webform to collect and edit submissions.
Namespace
Drupal\webformCode
public function getWebform() {
/** @var \Drupal\webform\WebformSubmissionInterface $webform_submission */
$webform_submission = $this
->getEntity();
return $webform_submission
->getWebform();
}