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.
Drupal\commerce_payment\PluginForm\PaymentMethodAddForm::buildConfigurationForm() has this twice:
/** @var \Drupal\commerce_payment\Entity\PaymentMethodInterface $payment_method */
$payment_method = $this->entity;
Comment | File | Size | Author |
---|
Comments
Comment #2
Krzysztof DomańskiComment #3
eli-on-drupal CreditAttribution: eli-on-drupal at Mindgrub Technologies commentedComment #4
eli-on-drupal CreditAttribution: eli-on-drupal at Mindgrub Technologies commentedLooks good to me!
Comment #5
joachim CreditAttribution: joachim as a volunteer commentedThe patch moves this to be set earlier.
I have no idea whether it might impact the code in between!
Comment #6
Krzysztof DomańskiComment #7
eli-on-drupal CreditAttribution: eli-on-drupal at Mindgrub Technologies commentedThe latest patch applies perfectly and had no impact on the functionality of the code when I tested it.
Comment #9
bojanz CreditAttribution: bojanz at Centarro commentedThere was an instance of the same duplication in buildConfigurationForm as well.
Added that to the patch, and committed. Thanks!