public function QueryActivity::countMessages in Activity 8
Count all from activity table.
File
- src/
QueryActivity.php, line 71
Class
- QueryActivity
- Provides queries for activity.
Namespace
Drupal\activityCode
public function countMessages() {
$query = $this->database
->select('activity', 'act');
$query
->fields('act', [
'message',
]);
return $query;
}