public function User::getBCEntity

Overrides Entity::getBCEntity().

Overrides EntityNG::getBCEntity

File

drupal/core/modules/user/lib/Drupal/user/Plugin/Core/Entity/User.php, line 234
Definition of Drupal\user\Plugin\Core\Entity\User.

Class

User
Defines the user entity class.

Namespace

Drupal\user\Plugin\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 UserBCDecorator($this, $this->fieldDefinitions);
  }
  return $this->bcEntity;
}