function Query::nextPlaceholder

Same name in other branches
  1. 9 core/lib/Drupal/Core/Database/Query/Query.php \Drupal\Core\Database\Query\Query::nextPlaceholder()
  2. 8.9.x core/lib/Drupal/Core/Database/Query/Query.php \Drupal\Core\Database\Query\Query::nextPlaceholder()
  3. 10 core/lib/Drupal/Core/Database/Query/Query.php \Drupal\Core\Database\Query\Query::nextPlaceholder()
  4. 11.x 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 Next placeholder value.

Overrides QueryPlaceholderInterface::nextPlaceholder

File

includes/database/query.inc, line 392

Class

Query
Base class for query builders.

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.