You are here

public function Query::nextPlaceholder in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Database/Query/Query.php \Drupal\Core\Database\Query\Query::nextPlaceholder()

Gets the next placeholder value for this query object.

Return value

int The next placeholder value.

Overrides PlaceholderInterface::nextPlaceholder

File

core/lib/Drupal/Core/Database/Query/Query.php, line 138

Class

Query
Base class for query builders.

Namespace

Drupal\Core\Database\Query

Code

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