Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ObjectSerialization.php

function 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');
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal