public function EntityBCDecorator::id

Forwards the call to the decorated entity.

Overrides EntityInterface::id

File

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

Class

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

Namespace

Drupal\Core\Entity

Code

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