You are here

function _d8cache_has_transaction_callbacks in Drupal 8 Cache Backport 7

Check whether the database connection supports root transaction end callbacks.

Parameters

DatabaseConnection $connection:

Return value

bool

1 call to _d8cache_has_transaction_callbacks()
d8cache_invalidate_cache_tags in ./d8cache.module
Implements hook_invalidate_cache_tags().

File

./d8cache.module, line 106
Main module file for the D8 caching system backport.

Code

function _d8cache_has_transaction_callbacks($connection) {
  return method_exists($connection, 'addRootTransactionEndCallback');
}