function Connection::driverTransactionManager

Same name in this branch
  1. 11.x core/modules/sqlite/src/Driver/Database/sqlite/Connection.php \Drupal\sqlite\Driver\Database\sqlite\Connection::driverTransactionManager()
  2. 11.x core/modules/mysql/src/Driver/Database/mysql/Connection.php \Drupal\mysql\Driver\Database\mysql\Connection::driverTransactionManager()
  3. 11.x core/modules/pgsql/src/Driver/Database/pgsql/Connection.php \Drupal\pgsql\Driver\Database\pgsql\Connection::driverTransactionManager()
Same name in other branches
  1. 10 core/modules/sqlite/src/Driver/Database/sqlite/Connection.php \Drupal\sqlite\Driver\Database\sqlite\Connection::driverTransactionManager()
  2. 10 core/modules/mysql/src/Driver/Database/mysql/Connection.php \Drupal\mysql\Driver\Database\mysql\Connection::driverTransactionManager()
  3. 10 core/modules/pgsql/src/Driver/Database/pgsql/Connection.php \Drupal\pgsql\Driver\Database\pgsql\Connection::driverTransactionManager()
  4. 10 core/lib/Drupal/Core/Database/Connection.php \Drupal\Core\Database\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.

Throws

\LogicException If the transaction manager is undefined or unavailable.

1 call to Connection::driverTransactionManager()
Connection::transactionManager in core/lib/Drupal/Core/Database/Connection.php
Returns the transaction manager.
3 methods override Connection::driverTransactionManager()
Connection::driverTransactionManager in core/modules/sqlite/src/Driver/Database/sqlite/Connection.php
Returns a new instance of the driver's transaction manager.
Connection::driverTransactionManager in core/modules/mysql/src/Driver/Database/mysql/Connection.php
Returns a new instance of the driver's transaction manager.
Connection::driverTransactionManager in core/modules/pgsql/src/Driver/Database/pgsql/Connection.php
Returns a new instance of the driver's transaction manager.

File

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

Class

Connection
Base Database API class.

Namespace

Drupal\Core\Database

Code

protected function driverTransactionManager() : TransactionManagerInterface {
    throw new \LogicException('The database driver has no TransactionManager implementation');
}

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