You are here

public function FieldItemInterface::getLangcode in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Field/FieldItemInterface.php \Drupal\Core\Field\FieldItemInterface::getLangcode()
  2. 9 core/lib/Drupal/Core/Field/FieldItemInterface.php \Drupal\Core\Field\FieldItemInterface::getLangcode()

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

Return value

string The langcode.

1 method overrides FieldItemInterface::getLangcode()
FieldItemBase::getLangcode in core/lib/Drupal/Core/Field/FieldItemBase.php
Gets the langcode of the field values held in the object.

File

core/lib/Drupal/Core/Field/FieldItemInterface.php, line 104

Class

FieldItemInterface
Interface for entity field items.

Namespace

Drupal\Core\Field

Code

public function getLangcode();