function ObjectSerialization::__destruct

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Test/ObjectSerialization.php \Drupal\Core\Test\ObjectSerialization::__destruct()
  2. 8.9.x core/lib/Drupal/Core/Test/ObjectSerialization.php \Drupal\Core\Test\ObjectSerialization::__destruct()
  3. 10 core/lib/Drupal/Core/Test/ObjectSerialization.php \Drupal\Core\Test\ObjectSerialization::__destruct()

ObjectSerialization destructor.

File

core/lib/Drupal/Core/Test/ObjectSerialization.php, line 20

Class

ObjectSerialization
Object to test that security issues around serialization.

Namespace

Drupal\Core\Test

Code

public function __destruct() {
    throw new \Exception('This object should never be destructed');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.