protected function Term::init

Same name in this branch

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

Overrides EntityNG::init

File

drupal/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/Core/Entity/Term.php, line 143
Definition of Drupal\taxonomy\Plugin\Core\Entity\Term.

Class

Term
Defines the taxonomy term entity.

Namespace

Drupal\taxonomy\Plugin\Core\Entity

Code

protected function init() {
  parent::init();
  unset($this->tid);
  unset($this->uuid);
  unset($this->vid);
  unset($this->name);
  unset($this->weight);
  unset($this->format);
  unset($this->description);
  unset($this->parent);
}