public function WebformSubmission::setLangcode in Webform 8.5
Same name and namespace in other branches
- 6.x src/Entity/WebformSubmission.php \Drupal\webform\Entity\WebformSubmission::setLangcode()
Sets the langcode of the field values held in the object.
Parameters
string $langcode: The langcode.
Return value
$this
Overrides WebformSubmissionInterface::setLangcode
File
- src/
Entity/ WebformSubmission.php, line 266
Class
- WebformSubmission
- Defines the WebformSubmission entity.
Namespace
Drupal\webform\EntityCode
public function setLangcode($langcode) {
$this
->set('langcode', $langcode);
return $this;
}