Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. TransactionManagerBase.php

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\Transaction

Code

public function has(string $name) : bool {
    foreach ($this->stack() as $item) {
        if ($item->name === $name) {
            return TRUE;
        }
    }
    return FALSE;
}
RSS feed
Powered by Drupal