You are here

protected function WebformSubmissionForm::isGet in Webform 8.5

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

Is the webform being initially loaded via GET method.

Return value

bool TRUE if the webform is being initially loaded via GET method.

1 call to WebformSubmissionForm::isGet()
WebformSubmissionForm::displayMessages in src/WebformSubmissionForm.php
Display draft, previous submission, and autofill status messages for this webform submission.

File

src/WebformSubmissionForm.php, line 2921

Class

WebformSubmissionForm
Provides a webform to collect and edit submissions.

Namespace

Drupal\webform

Code

protected function isGet() {
  return $this
    ->getRequest()
    ->getMethod() === 'GET' ? TRUE : FALSE;
}