You are here

public function WebformSubmission::getLangcode in Webform 6.x

Same name and namespace in other branches
  1. 8.5 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;
}