FieldItemBase::getLangcode

public FieldItemBase::getLangcode()

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

Return value

string The langcode.

Overrides FieldItemInterface::getLangcode

File

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

Class

FieldItemBase
An entity field item.

Namespace

Drupal\Core\Field

Code

public function getLangcode() {
  return $this->getParent()->getLangcode();
}
doc_Drupal
2016-10-29 09:11:37
Comments
Leave a Comment

Please login to continue.