drupal/feedback_contact_form
Composer 安装命令:
composer require drupal/feedback_contact_form
包简介
Drupal recipe providing a website feedback contact form.
README 文档
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.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2026-07-13