Is it possible to trigger a event for specific plugin?
I can load a specific plugin
$loaded = JPluginHelper::importPlugin('my_component', 'my_plugin_1');
But when I trigger an event, all the plugins that have that event are fired:
$results = JEventDispatcher::getInstance()->trigger('my_event');
I get the results not only of plugin1 but all the plugins that listen to that event.
$results = ['my_plugin_1_response', 'my_plugin_2_response']
;
Is it possible to limit the plugins listening to the event to my_plugin_1_response
only?
Please note that one possible solution would be to order the plugins and get the $results[0]
as the result, but I'm not interested in this, I don't want that the other plugins are fired at all.
Thanks!