protected function WebformSubmissionForm::isSharePage in Webform 6.x
Same name and namespace in other branches
- 8.5 src/WebformSubmissionForm.php \Drupal\webform\WebformSubmissionForm::isSharePage()
Determine if the submission form is being embedded in a share page.
Return value
bool TRUE the submission form is being embedded in a share page.
2 calls to WebformSubmissionForm::isSharePage()
- WebformSubmissionForm::displayMessages in src/
WebformSubmissionForm.php - Display draft, previous submission, and autofill status messages for this webform submission.
- WebformSubmissionForm::overrideSettings in src/
WebformSubmissionForm.php - Override webform settings for the webform submission.
File
- src/
WebformSubmissionForm.php, line 3043
Class
- WebformSubmissionForm
- Provides a webform to collect and edit submissions.
Namespace
Drupal\webformCode
protected function isSharePage() {
return strpos($this
->getRouteMatch()
->getRouteName(), 'entity.webform.share_page') === 0;
}