diff --git a/core/modules/field/src/Entity/FieldInstanceConfig.php b/core/modules/field/src/Entity/FieldInstanceConfig.php index 8ce7afa..56043f2 100644 --- a/core/modules/field/src/Entity/FieldInstanceConfig.php +++ b/core/modules/field/src/Entity/FieldInstanceConfig.php @@ -617,7 +617,7 @@ class FieldInstanceConfig extends ConfigEntityBase implements FieldInstanceConfi return $this->bundle; } - /* + /** * Implements the magic __sleep() method. * * Using the Serialize interface and serialize() / unserialize() methods @@ -633,15 +633,6 @@ class FieldInstanceConfig extends ConfigEntityBase implements FieldInstanceConfi } /** - * Implements the magic __wakeup() method. - */ - public function __wakeup() { - // Run the values from self::toArray() through __construct(). - $values = array_intersect_key($this->toArray(), get_object_vars($this)); - $this->__construct($values); - } - - /** * {@inheritdoc} */ public static function createFromDataType($type) { diff --git a/core/modules/field/src/Entity/FieldStorageConfig.php b/core/modules/field/src/Entity/FieldStorageConfig.php index dcae40b..ed8ac8e 100644 --- a/core/modules/field/src/Entity/FieldStorageConfig.php +++ b/core/modules/field/src/Entity/FieldStorageConfig.php @@ -650,15 +650,6 @@ class FieldStorageConfig extends ConfigEntityBase implements FieldStorageConfigI } /** - * Implements the magic __wakeup() method. - */ - public function __wakeup() { - // Run the values from self::toArray() through __construct(). - $values = array_intersect_key($this->toArray(), get_object_vars($this)); - $this->__construct($values); - } - - /** * {@inheritdoc} */ public function getConstraints() {