You are here

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\activity

Code

public function countMessages() {
  $query = $this->database
    ->select('activity', 'act');
  $query
    ->fields('act', [
    'message',
  ]);
  return $query;
}