Problem/Motivation
When using this module we sometimes need a more complex form that the one provided so we build a custom form but we would still like to reuse the subscribe logic.
Moving subscribe() to a service would make it easier to reuse and reduce code duplication.
Steps to reproduce
Move SignUpForm::subscribe() to a new service.
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork mailjet_sign_up-3582459
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
prudloff commentedI used some PHP 8 features so I removed Drupal 9 from core_version_requirement, I hope it's OK.
Removing protected methods is OK according to Drupal BC policy: https://www.drupal.org/about/core/policies/core-change-policies/bc-polic...
Comment #4
gaëlgThanks!