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

Breadcrumb

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

function Connection::__destruct

Same name in this branch
  1. 11.1.x core/modules/sqlite/src/Driver/Database/sqlite/Connection.php \Drupal\sqlite\Driver\Database\sqlite\Connection::__destruct()

Ensures that the client connection can be garbage collected.

2 calls to Connection::__destruct()
Connection::__destruct in core/modules/sqlite/src/Driver/Database/sqlite/Connection.php
Destructor for the SQLite connection.
Connection::__destruct in core/modules/sqlite/src/Driver/Database/sqlite/Connection.php
Destructor for the SQLite connection.
1 method overrides Connection::__destruct()
Connection::__destruct in core/modules/sqlite/src/Driver/Database/sqlite/Connection.php
Destructor for the SQLite connection.

File

core/lib/Drupal/Core/Database/Connection.php, line 211

Class

Connection
Base Database API class.

Namespace

Drupal\Core\Database

Code

public function __destruct() {
    // Ensure that the circular reference caused by Connection::__construct()
    // using $this in the call to set the statement class can be garbage
    // collected.
    $this->connection = NULL;
}

API Navigation

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