Contact forms in Drupal 8 have taken some of the characteristics of previously used contributed modules such as WebForm and placed the most common functionality into core. This new core feature allows us to create any type of form needed for users to be able to contact us. We can see the basic implementation of a contact form by navigating to /contact
within our site.
By default, Drupal creates a contact form that contains fields for name, e-mail, subject, and message. As part of the database snapshot, we have a contact page already created for us. However, we can easily add additional fields and manage the display and format of fields just like we can with content types.
To get a better understanding of how contact forms work, we can navigate to the Contact forms admin by entering /admin/structure/contact
within our browser.
We can see that two forms have already been configured:
Personal contact form that each user of our site will receive.
Contact Us (renamed from...