You are here

public function WebformSubmission::getLangcode in Webform 8.5

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

Gets the langcode of the field values held in the object.

Return value

string The langcode.

Overrides WebformSubmissionInterface::getLangcode

File

src/Entity/WebformSubmission.php, line 259

Class

WebformSubmission
Defines the WebformSubmission entity.

Namespace

Drupal\webform\Entity

Code

public function getLangcode() {
  return $this
    ->get('langcode')->value;
}