public function QueryActivity::getActivities in Activity 8
Get all activities.
File
- src/
QueryActivity.php, line 80
Class
- QueryActivity
- Provides queries for activity.
Namespace
Drupal\activityCode
public function getActivities() {
$query = $this->database
->select('activity', 'activity');
$query
->fields('activity', [
'action_id',
'event_id',
'entity_type',
'nid',
'uid',
'created',
'status',
'message',
]);
return $query;
}