W3cubDocs

/Drupal 8

public function Connection::__destruct

public Connection::__destruct()

File

core/lib/Drupal/Core/Database/Driver/mysql/Connection.php, line 192

Class

Connection
MySQL implementation of \Drupal\Core\Database\Connection.

Namespace

Drupal\Core\Database\Driver\mysql

Code

public function __destruct() {
  if ($this->needsCleanup) {
    $this->nextIdDelete();
  }
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Database!Driver!mysql!Connection.php/function/Connection::__destruct/8.1.x