protected function EntityNG::init

Initialize the object. Invoked upon construction and wake up.

10 calls to EntityNG::init()
Comment::init in drupal/core/modules/comment/lib/Drupal/comment/Plugin/Core/Entity/Comment.php
Initialize the object. Invoked upon construction and wake up.
CustomBlock::init in drupal/core/modules/block/custom_block/lib/Drupal/custom_block/Plugin/Core/Entity/CustomBlock.php
Initialize the object. Invoked upon construction and wake up.
EntityNG::__construct in drupal/core/lib/Drupal/Core/Entity/EntityNG.php
Overrides Entity::__construct().
EntityNG::__wakeup in drupal/core/lib/Drupal/Core/Entity/EntityNG.php
Magic __wakeup() implementation.
EntityTest::init in drupal/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Plugin/Core/Entity/EntityTest.php
Initialize the object. Invoked upon construction and wake up.

... See full list

8 methods override EntityNG::init()
Comment::init in drupal/core/modules/comment/lib/Drupal/comment/Plugin/Core/Entity/Comment.php
Initialize the object. Invoked upon construction and wake up.
CustomBlock::init in drupal/core/modules/block/custom_block/lib/Drupal/custom_block/Plugin/Core/Entity/CustomBlock.php
Initialize the object. Invoked upon construction and wake up.
EntityTest::init in drupal/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Plugin/Core/Entity/EntityTest.php
Initialize the object. Invoked upon construction and wake up.
Feed::init in drupal/core/modules/aggregator/lib/Drupal/aggregator/Plugin/Core/Entity/Feed.php
Overrides Drupal\Core\Entity\EntityNG::init().
Item::init in drupal/core/modules/aggregator/lib/Drupal/aggregator/Plugin/Core/Entity/Item.php
Overrides Drupal\Core\Entity\EntityNG::init().

... See full list

File

drupal/core/lib/Drupal/Core/Entity/EntityNG.php, line 112
Contains \Drupal\Core\Entity\EntityNG.

Class

EntityNG
Implements Entity Field API specific enhancements to the Entity class.

Namespace

Drupal\Core\Entity

Code

protected function init() {

  // We unset all defined properties, so magic getters apply.
  unset($this->langcode);
}