array(LANGUAGE_DEFAULT => array(0 => array('value' => LANGUAGE_NOT_SPECIFIED))), ); /** * Initialize the object. Invoked upon construction and wake up. */ protected function init() { parent::init(); // We unset all defined properties, so magic getters apply. $rc = new \ReflectionClass($this); $properties = $rc->getProperties(\ReflectionProperty::IS_PUBLIC); foreach ($properties as $property) { unset($this->{$property->name}); } } /** * Implements Drupal\Core\Entity\EntityInterface::id(). */ public function id() { return $this->get('id')->value; } }