public function EntityNG::getBCEntity

Overrides Entity::getBCEntity().

Overrides Entity::getBCEntity

2 methods override EntityNG::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;
}