1 database.inc | _db_is_replica(array $db_options) |
Check if a database has been specified as a replica.
Parameters
array $db_options: An array of options to control how the query operates.
Return value
bool: TRUE if a replica, FALSE otherwise.
File
- core/
includes/ database/ database.inc, line 3369 - Core systems for the database layer.
Code
function _db_is_replica(array $db_options) {
// @todo Remove forbidden backwards compatibility word in Backdrop 2.x.
return empty($db_options['target']) || $db_options['target'] == 'slave' || $db_options['target'] == 'replica';
}