ContactFormServiceInterface
interface ContactFormServiceInterface
Interface to be called for DI for ContactFormServiceInterface related services
Methods
Creates the contactForm
Shortcut to call ContactFormFactory to create Form
Gets subject if provided by url parameter "s"
Gets referer defined in session
Tests if delay (defined in config) is not too short and if honeypot has not been filled, to avoid being used by bot
Defines the referer to redirect to after submission of form
Details
at line 27
ContactForm
create()
Creates the contactForm
at line 33
Form
createForm(string $name, ContactForm $contactForm, ContactFormEvent $event)
Shortcut to call ContactFormFactory to create Form
at line 39
string|null
getSubject()
Gets subject if provided by url parameter "s"
at line 45
string|null
getReferer()
Gets referer defined in session
at line 51
bool
isNotBot($username)
Tests if delay (defined in config) is not too short and if honeypot has not been filled, to avoid being used by bot
at line 56
setReferer()
Defines the referer to redirect to after submission of form
at line 62
string|null
sendEmail(Form $form, ContactFormEvent $event)
Sends email resulting from submission of form