class ContactFormEmail implements ContactFormEmailInterface

Services related to ContactForm Email

Properties

private ConfigServiceInterface $configService Stores ConfigServiceInterface
private Request $request Stores current Request
private Environment $environment Stores Environment
private EmailServiceInterface $emailService Stores EmailServiceInterface

Methods

__construct(ConfigServiceInterface $configService, EmailServiceInterface $emailService, RequestStack $requestStack, Environment $environment)

No description

array
defineData(ContactFormEvent $event, ContactForm $formData)

Defines data to use for email

bool
send(ContactFormEvent $event, ContactForm $formData)

Sends email

Details

at line 51
__construct(ConfigServiceInterface $configService, EmailServiceInterface $emailService, RequestStack $requestStack, Environment $environment)

Parameters

ConfigServiceInterface $configService
EmailServiceInterface $emailService
RequestStack $requestStack
Environment $environment

at line 67
array defineData(ContactFormEvent $event, ContactForm $formData)

Defines data to use for email

Parameters

ContactFormEvent $event
ContactForm $formData

Return Value

array

at line 130
bool send(ContactFormEvent $event, ContactForm $formData)

Sends email

Parameters

ContactFormEvent $event
ContactForm $formData

Return Value

bool