function FieldItemBase::getLangcode

Same name in other branches
  1. 9 core/lib/Drupal/Core/Field/FieldItemBase.php \Drupal\Core\Field\FieldItemBase::getLangcode()
  2. 8.9.x core/lib/Drupal/Core/Field/FieldItemBase.php \Drupal\Core\Field\FieldItemBase::getLangcode()
  3. 11.x core/lib/Drupal/Core/Field/FieldItemBase.php \Drupal\Core\Field\FieldItemBase::getLangcode()

Overrides FieldItemInterface::getLangcode

2 calls to FieldItemBase::getLangcode()
FieldTestItem::delete in core/modules/system/tests/modules/entity_test/src/Plugin/Field/FieldType/FieldTestItem.php
PathItem::postSave in core/modules/path/src/Plugin/Field/FieldType/PathItem.php

File

core/lib/Drupal/Core/Field/FieldItemBase.php, line 81

Class

FieldItemBase
An entity field item.

Namespace

Drupal\Core\Field

Code

public function getLangcode() {
    return $this->getParent()
        ->getLangcode();
}

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