2of7 Posted October 3, 2018 Share Posted October 3, 2018 (edited) I'm overriding the getFormat () function in the customerformatter class. Here $this-> translator-> trans doesn't work. So what is the best way to call the translation from override? $format['company'] = (new FormField) ->setName('company') ->setType('text') ->setLabel($this->translator->trans( 'Company', [], 'Shop.Forms.Labels' )); If I overwrite the whole customerformatter class, obviously everything works. Thank you Edited October 3, 2018 by 2of7 (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now