How can I access my plugin's snippet from a PHP class?

Use the symfony trannslator as dependency of your service or class and access your snippet like this example.

$label = $this->translator->trans(‘your-label’);

1 „Gefällt mir“