Lines 100.00% 1 / 1
Methods 100.00% 1 / 1
Classes 100.00% 1 / 1
Covered by tests of size
Name Lines Methods CRAP
 triggerPluginEvent 100.00% 1 / 1 100.00% 1 / 1 1
26class PluginTwigExtension extends AbstractExtension
27{
28    #[AsTwigFunction(name: 'phpMyFAQPlugin')]
29    public static function triggerPluginEvent(string $eventName, mixed $data = null): string
30    {
31        return Configuration::getConfigurationInstance()->getPluginManager()->triggerEvent($eventName, $data);
32    }
33}