Implements TranslatableInterface::language().
Overrides Entity::language
File
- drupal/core/lib/Drupal/Core/Entity/EntityNG.php, line 210
- Definition of Drupal\Core\Entity\EntityNG.
Class
- EntityNG
- Implements Entity Field API specific enhancements to the Entity class.
Namespace
Drupal\Core\Entity
Code
public function language() {
return $this
->get('langcode')->language;
}