public function ObjectSerialization::__destruct in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Test/ObjectSerialization.php \Drupal\Core\Test\ObjectSerialization::__destruct()
- 10 core/lib/Drupal/Core/Test/ObjectSerialization.php \Drupal\Core\Test\ObjectSerialization::__destruct()
ObjectSerialization deconstructor.
File
- core/
lib/ Drupal/ Core/ Test/ ObjectSerialization.php, line 20
Class
- ObjectSerialization
- Object to test that security issues around serialization.
Namespace
Drupal\Core\TestCode
public function __destruct() {
throw new \Exception('This object should never be destructed');
}