W3cubDocs

/Drupal 8

public function Connection::serialize

public Connection::serialize()

File

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

Class

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

Namespace

Drupal\Core\Database\Driver\mysql

Code

public function serialize() {
  // Cleanup the connection, much like __destruct() does it as well.
  if ($this->needsCleanup) {
    $this->nextIdDelete();
  }
  $this->needsCleanup = FALSE;

  return parent::serialize();
}

© 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::serialize/8.1.x