You are here

public function Connection::insert in MongoDB 8

File

drivers/lib/Drupal/Driver/Database/mongodb/Connection.php, line 47

Class

Connection

Namespace

Drupal\Driver\Database\mongodb

Code

public function insert($table, array $options = array()) {
  $return = FALSE;
  if (drupal_valid_test_ua() || $table == 'node_access') {
    $return = $this
      ->getTestHelper()
      ->insert($table, $options);
  }
  return $return ?: new FakeInsert($table, $options);
}