public function EntityNG::getBCEntity

Overrides Entity::getBCEntity().

Overrides Entity::getBCEntity

2 methods override EntityNG::getBCEntity()
Node::getBCEntity in drupal/core/modules/node/lib/Drupal/node/Plugin/Core/Entity/Node.php
Overrides Entity::getBCEntity().
User::getBCEntity in drupal/core/modules/user/lib/Drupal/user/Plugin/Core/Entity/User.php
Overrides Entity::getBCEntity().

File

drupal/core/lib/Drupal/Core/Entity/EntityNG.php, line 434
Contains \Drupal\Core\Entity\EntityNG.

Class

EntityNG
Implements Entity Field API specific enhancements to the Entity class.

Namespace

Drupal\Core\Entity

Code

public function getBCEntity() {
  if (!isset($this->bcEntity)) {

    // Initialize field definitions so that we can pass them by reference.
    $this
      ->getPropertyDefinitions();
    $this->bcEntity = new EntityBCDecorator($this, $this->fieldDefinitions);
  }
  return $this->bcEntity;
}