protected function EntityTest::init

Initialize the object. Invoked upon construction and wake up.

Overrides EntityNG::init

1 call to EntityTest::init()
EntityTestRev::init in drupal/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Plugin/Core/Entity/EntityTestRev.php
Overrides EntityNG::init().
1 method overrides EntityTest::init()
EntityTestRev::init in drupal/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Plugin/Core/Entity/EntityTestRev.php
Overrides EntityNG::init().

File

drupal/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Plugin/Core/Entity/EntityTest.php, line 80
Definition of Drupal\entity_test\Plugin\Core\Entity\EntityTest.

Class

EntityTest
Defines the test entity class.

Namespace

Drupal\entity_test\Plugin\Core\Entity

Code

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

  // We unset all defined properties, so magic getters apply.
  unset($this->id);
  unset($this->uuid);
  unset($this->name);
  unset($this->user_id);
  unset($this->type);
}