Connection::$needsCleanup

Same name in other branches
  1. 9 core/modules/mysql/src/Driver/Database/mysql/Connection.php \Drupal\mysql\Driver\Database\mysql\Connection::needsCleanup
  2. 8.9.x core/lib/Drupal/Core/Database/Driver/mysql/Connection.php \Drupal\Core\Database\Driver\mysql\Connection::needsCleanup

Flag to indicate if the cleanup function in __destruct() should run.

Type: bool

Deprecated

in drupal:10.2.0 and is removed from drupal:11.0.0. There's no replacement.

See also

https://www.drupal.org/node/3349345

File

core/modules/mysql/src/Driver/Database/mysql/Connection.php, line 56

Class

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

Namespace

Drupal\mysql\Driver\Database\mysql

Code

protected $needsCleanup = FALSE;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.