You are here

public function WebformSubmissionForm::getBaseFormId in Webform 8.5

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

Returns a string identifying the base form.

Return value

string|null The string identifying the base form or NULL if this is not a base form.

Overrides EntityForm::getBaseFormId

File

src/WebformSubmissionForm.php, line 310

Class

WebformSubmissionForm
Provides a webform to collect and edit submissions.

Namespace

Drupal\webform

Code

public function getBaseFormId() {
  $base_form_id = $this->entity
    ->getEntityTypeId();
  $base_form_id .= '_' . $this->entity
    ->bundle();
  return $base_form_id . '_form';
}