定制 drupal/feedback_contact_form 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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/contact module enabled in the target site
  • Drush 12+ (or an equivalent tool capable of installing recipes)

Installation

  1. Require this recipe in your project root:
    composer require drupal/feedback_contact_form
    
  2. Apply the recipe to an existing site:
    drush recipes:install vendor/drupal/feedback_contact_form/recipe.yml
    

    Run the command from a fully bootstrapped Drupal site. The recipe creates the Website feedback contact 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 alongside recipe.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
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2026-07-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固