Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Because of #2949447: Expose honeypot protection via service, the honeypot function honeypot_add_form_protection
is deprecated and we should use the service \Drupal::service('honeypot')->addFormProtection
Proposed resolution
Replace the function with the new service
Remaining tasks
- Create the MR
- Review
Issue fork webform-3282245
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
jjcarrionComment #4
jjcarrionComment #5
cilefen CreditAttribution: cilefen commentedComment #6
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commented@see #3359314: Drupal 10 deprecated code errors and warnings