Query::$comments

Same name in other branches
  1. 7.x includes/database/query.inc \Query::comments
  2. 9 core/lib/Drupal/Core/Database/Query/Query.php \Drupal\Core\Database\Query\Query::comments
  3. 10 core/lib/Drupal/Core/Database/Query/Query.php \Drupal\Core\Database\Query\Query::comments
  4. 11.x core/lib/Drupal/Core/Database/Query/Query.php \Drupal\Core\Database\Query\Query::comments

An array of comments that can be prepended to a query.

Type: array

File

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

Class

Query
Base class for query builders.

Namespace

Drupal\Core\Database\Query

Code

protected $comments = [];

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