public function EntityBCDecorator::entityType

Forwards the call to the decorated entity.

Overrides EntityInterface::entityType

File

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

Class

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

Namespace

Drupal\Core\Entity

Code

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