W3cubDocs

/Drupal 8

public function InsertTrait::count

public InsertTrait::count()

File

core/lib/Drupal/Core/Database/Query/InsertTrait.php, line 182

Class

InsertTrait
Provides common functionality for INSERT and UPSERT queries.

Namespace

Drupal\Core\Database\Query

Code

public function count() {
  return count($this->insertValues);
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Database!Query!InsertTrait.php/function/InsertTrait::count/8.1.x