You are here

public function QueryActivity::getMessage in Activity 8

Get message of specific hook.

Parameters

string $hook: Event when the log should be inserted.

1 call to QueryActivity::getMessage()
QueryActivity::logActivity in src/QueryActivity.php
Log actions in table activity.

File

src/QueryActivity.php, line 168

Class

QueryActivity
Provides queries for activity.

Namespace

Drupal\activity

Code

public function getMessage($hook) {
  $query = $this->database
    ->select('activity_events', 'act')
    ->fields('act', [
    'message',
    'event_id',
  ])
    ->condition('hook', $hook)
    ->execute()
    ->fetchAll();
  return $query;
}