protected function Node::init

Same name in this branch

Overrides \Drupal\Core\Entity\EntityNG::init().

Overrides EntityNG::init

File

drupal/core/modules/node/lib/Drupal/node/Plugin/Core/Entity/Node.php, line 208
Definition of Drupal\node\Plugin\Core\Entity\Node.

Class

Node
Defines the node entity class.

Namespace

Drupal\node\Plugin\Core\Entity

Code

protected function init() {
  parent::init();

  // We unset all defined properties, so magic getters apply.
  unset($this->nid);
  unset($this->vid);
  unset($this->uuid);
  unset($this->type);
  unset($this->title);
  unset($this->uid);
  unset($this->status);
  unset($this->created);
  unset($this->changed);
  unset($this->comment);
  unset($this->promote);
  unset($this->sticky);
  unset($this->tnid);
  unset($this->translate);
  unset($this->revision_timestamp);
  unset($this->revision_uid);
  unset($this->log);
}