public function Schema::nextPlaceholder

public Schema::nextPlaceholder()

Returns the next placeholder ID for the query.

Return value

The next available placeholder ID as an integer.

Overrides PlaceholderInterface::nextPlaceholder

File

core/lib/Drupal/Core/Database/Schema.php, line 63

Class

Schema
Provides a base implementation for Database Schema.

Namespace

Drupal\Core\Database

Code

public function nextPlaceholder() {
  return $this->placeholder++;
}

© 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!Schema.php/function/Schema::nextPlaceholder/8.1.x