protected function WebformSubmissionForm::isSharePage in Webform 8.5
Same name and namespace in other branches
- 6.x 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 3077
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;
}