Skip to content
Snippets Groups Projects
Verified Commit 10154d1a authored by quietone's avatar quietone
Browse files

Issue #3494128 by nicxvan, smustgrave: Move helpers in contact_storage_test.module and delete it

parent 0fc32f07
No related branches found
No related tags found
9 merge requests!11197Issue #3506427 by eduardo morales alberti: Remove responsive_image.ajax from hook,!11131[10.4.x-only-DO-NOT-MERGE]: Issue ##2842525 Ajax attached to Views exposed filter form does not trigger callbacks,!10786Issue #3490579 by shalini_jha, mstrelan: Add void return to all views...,!3878Removed unused condition head title for views,!3818Issue #2140179: $entity->original gets stale between updates,!2964Issue #2865710 : Dependencies from only one instance of a widget are used in display modes,!2062Issue #3246454: Add weekly granularity to views date sort,!10223132456: Fix issue where views instances are emptied before an ajax request is complete,!617Issue #3043725: Provide a Entity Handler for user cancelation
Pipeline #374599 passed with warnings
Pipeline: drupal

#374611

    Pipeline: drupal

    #374607

      Pipeline: drupal

      #374600

        ......@@ -15070,12 +15070,6 @@
        'count' => 1,
        'path' => __DIR__ . '/modules/contact/src/Plugin/views/field/ContactLink.php',
        ];
        $ignoreErrors[] = [
        // identifier: missingType.return
        'message' => '#^Function contact_storage_test_contact_form_form_builder\\(\\) has no return type specified\\.$#',
        'count' => 1,
        'path' => __DIR__ . '/modules/contact/tests/modules/contact_storage_test/contact_storage_test.module',
        ];
        $ignoreErrors[] = [
        // identifier: missingType.return
        'message' => '#^Method Drupal\\\\contact_storage_test\\\\Hook\\\\ContactStorageTestHooks\\:\\:entityBaseFieldInfo\\(\\) has no return type specified\\.$#',
        <?php
        /**
        * @file
        * Contains custom contact message functionality for ContactStorageTest.
        */
        declare(strict_types=1);
        use Drupal\contact\ContactFormInterface;
        use Drupal\Core\Form\FormStateInterface;
        /**
        * Entity builder for the contact form edit form with third party options.
        *
        * @see contact_storage_test_form_contact_form_edit_form_alter()
        */
        function contact_storage_test_contact_form_form_builder($entity_type, ContactFormInterface $contact_form, &$form, FormStateInterface $form_state) {
        $contact_form->setThirdPartySetting('contact_storage_test', 'send_a_pony', $form_state->getValue('send_a_pony'));
        }
        ......@@ -4,6 +4,7 @@
        namespace Drupal\contact_storage_test\Hook;
        use Drupal\contact\ContactFormInterface;
        use Drupal\Core\Form\FormStateInterface;
        use Drupal\Core\Field\BaseFieldDefinition;
        use Drupal\Core\Entity\EntityTypeInterface;
        ......@@ -54,7 +55,16 @@ public function formContactFormFormAlter(&$form, FormStateInterface $form_state)
        '#description' => t('Enable to send an additional email with a free pony voucher to anyone who submits the form.'),
        '#default_value' => $contact_form->getThirdPartySetting('contact_storage_test', 'send_a_pony', FALSE),
        ];
        $form['#entity_builders'][] = 'contact_storage_test_contact_form_form_builder';
        $form['#entity_builders'][] = [$this, 'contactFormBuilder'];
        }
        /**
        * Entity builder for the contact form edit form with third party options.
        *
        * @see contact_storage_test_form_contact_form_edit_form_alter()
        */
        public function contactFormBuilder($entity_type, ContactFormInterface $contact_form, &$form, FormStateInterface $form_state): void {
        $contact_form->setThirdPartySetting('contact_storage_test', 'send_a_pony', $form_state->getValue('send_a_pony'));
        }
        }
        0% Loading or .
        You are about to add 0 people to the discussion. Proceed with caution.
        Finish editing this message first!
        Please register or to comment