function TransactionManagerInterface::has
Checks if a named Drupal transaction is active.
Parameters
string $name: The name of the transaction.
Return value
bool TRUE if the transaction is active, FALSE otherwise.
1 method overrides TransactionManagerInterface::has()
- TransactionManagerBase::has in core/
lib/ Drupal/ Core/ Database/ Transaction/ TransactionManagerBase.php - Checks if a named Drupal transaction is active.
File
-
core/
lib/ Drupal/ Core/ Database/ Transaction/ TransactionManagerInterface.php, line 31
Class
- TransactionManagerInterface
- Interface for the database transaction manager classes.
Namespace
Drupal\Core\Database\TransactionCode
public function has(string $name) : bool;