function CommentStorage::getUnapprovedCount
Same name in other branches
- 9 core/modules/comment/src/CommentStorage.php \Drupal\comment\CommentStorage::getUnapprovedCount()
- 10 core/modules/comment/src/CommentStorage.php \Drupal\comment\CommentStorage::getUnapprovedCount()
- 11.x core/modules/comment/src/CommentStorage.php \Drupal\comment\CommentStorage::getUnapprovedCount()
Overrides CommentStorageInterface::getUnapprovedCount
File
-
core/
modules/ comment/ src/ CommentStorage.php, line 341
Class
- CommentStorage
- Defines the storage handler class for comments.
Namespace
Drupal\commentCode
public function getUnapprovedCount() {
return $this->database
->select($this->getDataTable(), 'c')
->condition('status', CommentInterface::NOT_PUBLISHED, '=')
->condition('default_langcode', 1)
->countQuery()
->execute()
->fetchField();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.