public function EntityBCDecorator::language

Forwards the call to the decorated entity.

Overrides TranslatableInterface::language

File

drupal/core/lib/Drupal/Core/Entity/EntityBCDecorator.php, line 414
Contains \Drupal\Core\Entity\EntityBCDecorator.

Class

EntityBCDecorator
Provides backwards compatible (BC) access to entity fields.

Namespace

Drupal\Core\Entity

Code

public function language() {
  return $this->decorated
    ->language();
}