Closed denisyilmaz closed 2 years ago
By the way, your example does not mention the isSelectable()
function which is needed when implementing
FilterInterface
:
public static function isSelectable(): bool
{
return true;
}
is the docs out of sync? Maybe there is something else missing which would explain why the filter does not show up
… shame on me. i did not bootstrap my custom module.
Description
Hi, I'm trying to implement a custom Filter for the Webhook plugin. I have a entry type "museum" for which i would like to create a webhook in the CP. I've added a
SiteModule
and created a customMuseumFilter
which implementsFilterInterface
:In my
SiteModule
I've attached this filter via theWebhooks::EVENT_REGISTER_FILTER_TYPES
Event in theinit()
function:But for whatever reason the Filter does not show up in my webhook. Am I missing something?
Additional info