drupal / feedback_contact_form
Drupal recipe providing a website feedback contact form.
Package info
git.drupalcode.org/project/feedback_contact_form.git
Type:drupal-recipe
pkg:composer/drupal/feedback_contact_form
Requires
- drupal/contact: *
- drupal/core: ^10.3 || ^11 || ^12
This package is not auto-updated.
Last update: 2026-07-14 12:19:43 UTC
README
Overview
This repository preserves the Feedback Contact Form recipe that previously shipped with Drupal core’s Standard profile. The recipe provisions a basic site-wide contact form, grants anonymous and authenticated users access, and exposes a menu link in the footer so visitors can send feedback to a configured recipient. Use it as a drop-in replacement while the upstream recipe is being removed from core.
Requirements
- Drupal core
^10.3 || ^11 drupal/contactmodule enabled in the target site- Drush 12+ (or an equivalent tool capable of installing recipes)
Installation
- Require this recipe in your project root:
composer require drupal/feedback_contact_form - Apply the recipe to an existing site:
drush recipes:install vendor/drupal/feedback_contact_form/recipe.ymlRun the command from a fully bootstrapped Drupal site. The recipe creates the
Website feedbackcontact form, sets its success message and redirect behavior, configures the footer menu link, and assigns the necessary permissions.
Configuration
- The recipe references a
${recipient}placeholder. During installation you will be prompted (or can pass--set recipient=you@example.com) to set the email address that should receive submissions. - If you extend the recipe, follow Drupal’s config naming conventions (for
example
contact.form.*) and keep new configuration in additional YAML files alongsiderecipe.yml.
Testing
Functional coverage lives under tests/src/Functional/. Execute the suite
against a built test site with:
vendor/bin/phpunit --testsuite functional --group feedback_contact_form
Ensure the test environment has the recipe installed so the form routes and permissions are available.
Background
The recipe originated in Drupal core’s Standard profile and is being maintained in contrib here.