Mercurial > hg > isophonics-drupal-site
comparison core/modules/comment/src/CommentStorage.php @ 12:7a779792577d
Update Drupal core to v8.4.5 (via Composer)
author | Chris Cannam |
---|---|
date | Fri, 23 Feb 2018 15:52:07 +0000 |
parents | 4c8ae668cc8c |
children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
11:bfffd8d7479a | 12:7a779792577d |
---|---|
322 | 322 |
323 /** | 323 /** |
324 * {@inheritdoc} | 324 * {@inheritdoc} |
325 */ | 325 */ |
326 public function getUnapprovedCount() { | 326 public function getUnapprovedCount() { |
327 return $this->database->select('comment_field_data', 'c') | 327 return $this->database->select('comment_field_data', 'c') |
328 ->condition('status', CommentInterface::NOT_PUBLISHED, '=') | 328 ->condition('status', CommentInterface::NOT_PUBLISHED, '=') |
329 ->condition('default_langcode', 1) | 329 ->condition('default_langcode', 1) |
330 ->countQuery() | 330 ->countQuery() |
331 ->execute() | 331 ->execute() |
332 ->fetchField(); | 332 ->fetchField(); |