Skip to content

Action Criterion

The ActionCriterion Activity Log Criterion matches activity log group that has a log entry with one of the given actions.

Argument

  • actions - list of action name strings. A set of built-in names is available as ActivityLogServiceInterface's ACTION_ prefixed constants.

Example

1
2
3
4
5
6
$query = new ActivityLog\Query([
    new ActivityLog\Criterion\ActionCriterion([
        ActivityLog\ActivityLogServiceInterface::ACTION_DELETE,
        ActivityLog\ActivityLogServiceInterface::ACTION_TRASH,
    ]),
]);