diff options
| author | wn <4-wn@users.noreply.gitlab.tt-rss.org> | 2025-05-21 15:00:31 -0500 |
|---|---|---|
| committer | wn <4-wn@users.noreply.gitlab.tt-rss.org> | 2025-05-21 15:00:31 -0500 |
| commit | b9b5c378b076c4dbb7c3889f1ba14582470d03e6 (patch) | |
| tree | c4b3416cf8483691a5f39ea11f7d4df0a25339d1 /classes/Plugin.php | |
| parent | 9ffb096e87607692ab2a53e12e1a98e1b3012a7e (diff) | |
| parent | df28c71641fd53f73a982f48ba7898e2cf208eca (diff) | |
Merge branch 'feature/filter-action-refs' into 'master'
Improve naming when working with filter actions.
See merge request tt-rss/tt-rss!138
Diffstat (limited to 'classes/Plugin.php')
| -rw-r--r-- | classes/Plugin.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/classes/Plugin.php b/classes/Plugin.php index 3165d62f4..3ab000e53 100644 --- a/classes/Plugin.php +++ b/classes/Plugin.php @@ -557,18 +557,18 @@ abstract class Plugin { return -1; } - /** Invoked when filter is triggered on an article, may be used to implement logging for filters - * NOTE: $article_filters should be renamed $filter_actions because that's what this is + /** + * Invoked when filtering is triggered on an article. May be used to implement logging for filters, etc. * @param int $feed_id * @param int $owner_uid * @param array<string,mixed> $article * @param array<string,mixed> $matched_filters * @param array<string,string|bool|int> $matched_rules - * @param array<string,string> $article_filters + * @param array<int, array{'type': string, 'param': string}> $article_filter_actions An array of filter actions from matched filters * @return void * @see PluginHost::HOOK_FILTER_TRIGGERED */ - function hook_filter_triggered($feed_id, $owner_uid, $article, $matched_filters, $matched_rules, $article_filters) { + function hook_filter_triggered($feed_id, $owner_uid, $article, $matched_filters, $matched_rules, $article_filter_actions) { user_error("Dummy method invoked.", E_USER_ERROR); } |