function TransactionManagerBase::has
Overrides TransactionManagerInterface::has
1 call to TransactionManagerBase::has()
- TransactionManagerBase::push in core/
lib/ Drupal/ Core/ Database/ Transaction/ TransactionManagerBase.php - Pushes a new Drupal transaction on the stack.
File
-
core/
lib/ Drupal/ Core/ Database/ Transaction/ TransactionManagerBase.php, line 402
Class
- TransactionManagerBase
- The database transaction manager base class.
Namespace
Drupal\Core\Database\TransactionCode
public function has(string $name) : bool {
foreach ($this->stack() as $item) {
if ($item->name === $name) {
return TRUE;
}
}
return FALSE;
}