function TransactionManagerInterface::inTransaction

Same name in other branches
  1. 11.x core/lib/Drupal/Core/Database/Transaction/TransactionManagerInterface.php \Drupal\Core\Database\Transaction\TransactionManagerInterface::inTransaction()

Determines if there is an active transaction open.

Return value

bool TRUE if we're currently in a transaction, FALSE otherwise.

1 method overrides TransactionManagerInterface::inTransaction()
TransactionManagerBase::inTransaction in core/lib/Drupal/Core/Database/Transaction/TransactionManagerBase.php

File

core/lib/Drupal/Core/Database/Transaction/TransactionManagerInterface.php, line 20

Class

TransactionManagerInterface
Interface for the database transaction manager classes.

Namespace

Drupal\Core\Database\Transaction

Code

public function inTransaction() : bool;

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