public function DataProviderComment::getQueryCount in RESTful 7.2
Overrides DataProviderEntity::getQueryCount().
Only count published comments.
Overrides DataProviderEntity::getQueryCount
File
- modules/
restful_example/ src/ Plugin/ resource/ comment/ DataProviderComment.php, line 55 - Contains \Drupal\restful_example\Plugin\resource\comment\DataProviderComment.
Class
Namespace
Drupal\restful_example\Plugin\resource\commentCode
public function getQueryCount() {
$query = parent::getQueryCount();
$query
->propertyCondition('status', COMMENT_PUBLISHED);
return $query;
}