Commit 7e34b3bb authored by catch's avatar catch
Browse files

Issue #3553006 by thejimbirch, andypost, quietone, smustgrave: Remove Contact recipe

(cherry picked from commit 1bd3c333)
parent 95faba85
Loading
Loading
Loading
Loading
Loading
+0 −49
Original line number Diff line number Diff line
name: 'Website feedback contact form'
description: 'Provides a website feedback contact form.'
type: 'Contact form'
install:
  - contact
input:
  recipient:
    data_type: email
    description: 'The email address that should receive submissions from the feedback form.'
    constraints:
      NotBlank: []
    prompt:
      method: ask
      arguments:
        question: 'What email address should receive website feedback?'
    form:
      '#type': email
      '#title': 'Feedback form email address'
    default:
      source: config
      config: ['system.site', 'mail']
config:
  # Don't conflict with existing configuration.
  strict: false
  import:
    contact:
      - contact.form.personal
    system:
      - system.menu.footer
  actions:
    contact.form.feedback:
      createIfNotExists:
        label: 'Website feedback'
        message: 'Your message has been sent.'
        redirect: ''
      setRecipients:
        - ${recipient}
    core.menu.static_menu_link_overrides:
      simpleConfigUpdate:
        definitions.contact__site_page:
          menu_name: footer
          parent: ''
          weight: 0
          expanded: false
          enabled: true
    user.role.anonymous:
      grantPermission: 'access site-wide contact form'
    user.role.authenticated:
      grantPermission: 'access site-wide contact form'
+0 −16
Original line number Diff line number Diff line
<?php

declare(strict_types=1);

namespace Drupal\FunctionalTests\Recipe\Core\feedback_contact_form;

use Drupal\Tests\system\Functional\Recipe\GenericRecipeTestBase;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;

/**
 * Tests Generic.
 */
#[Group('core_feedback_contact_form_recipe')]
#[RunTestsInSeparateProcesses]
class GenericTest extends GenericRecipeTestBase {}