By jsacksick on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
3.0.x
Introduced in version:
3.0.0
Issue links:
Description:
Payments gateway plugins can now define multiple libraries to include in checkout / in payment add forms.
Previously, only a single library could be included using the "js_library" annotation key / attribute value, like the following:
#[CommercePaymentGateway(
id: "example_offsite_redirect",
label: new TranslatableMarkup("Example (Off-site redirect)"),
js_library: "commerce_payment_example/library"
)]
After:
#[CommercePaymentGateway(
id: "example_offsite_redirect",
label: new TranslatableMarkup("Example (Off-site redirect)"),
libraries: [
"commerce_payment_example/library",
"commerce_payment_example/my_second_library"
],
)]
Impacts:
Module developers