function TransactionManagerInterface::has

Same name in other branches
  1. 11.x core/lib/Drupal/Core/Database/Transaction/TransactionManagerInterface.php \Drupal\Core\Database\Transaction\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\Transaction

Code

public function has(string $name) : bool;

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