function FieldItemListInterface::setLangcode

Same name in other branches
  1. 9 core/lib/Drupal/Core/Field/FieldItemListInterface.php \Drupal\Core\Field\FieldItemListInterface::setLangcode()
  2. 10 core/lib/Drupal/Core/Field/FieldItemListInterface.php \Drupal\Core\Field\FieldItemListInterface::setLangcode()
  3. 11.x core/lib/Drupal/Core/Field/FieldItemListInterface.php \Drupal\Core\Field\FieldItemListInterface::setLangcode()

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

Parameters

string $langcode: The langcode.

1 method overrides FieldItemListInterface::setLangcode()
FieldItemList::setLangcode in core/lib/Drupal/Core/Field/FieldItemList.php
Sets the langcode of the field values held in the object.

File

core/lib/Drupal/Core/Field/FieldItemListInterface.php, line 47

Class

FieldItemListInterface
Interface for fields, being lists of field items.

Namespace

Drupal\Core\Field

Code

public function setLangcode($langcode);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.