protected function User::init

Same name in this branch

Initialize the object. Invoked upon construction and wake up.

Overrides EntityNG::init

File

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

Class

User
Defines the user entity class.

Namespace

Drupal\user\Plugin\Core\Entity

Code

protected function init() {
  parent::init();
  unset($this->access);
  unset($this->created);
  unset($this->init);
  unset($this->login);
  unset($this->mail);
  unset($this->name);
  unset($this->pass);
  unset($this->preferred_admin_langcode);
  unset($this->preferred_langcode);
  unset($this->roles);
  unset($this->signature);
  unset($this->signature_format);
  unset($this->status);
  unset($this->theme);
  unset($this->timezone);
  unset($this->uid);
  unset($this->uuid);
}