function Connection::driverTransactionManager

Returns a new instance of the driver's transaction manager.

Database drivers must implement their own class extending from \Drupal\Core\Database\Transaction\TransactionManagerBase, and instantiate it here.

Return value

\Drupal\Core\Database\Transaction\TransactionManagerInterface The transaction manager.

Overrides Connection::driverTransactionManager

File

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

Class

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

Namespace

Drupal\mysql\Driver\Database\mysql

Code

protected function driverTransactionManager() : TransactionManagerInterface {
  return new TransactionManager($this);
}

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