Most payment statuses require static metadata and will extend the default base class. Instead of using annotated plugins, we should use YAML files for status declarations and use derivatives for more complex solutions.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Xano’s picture

This can't be done, until core can extract translatable strings from contrib modules' yml files.

Xano’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)
Xano’s picture

Xano’s picture

Xano’s picture

Status: Active » Needs review
FileSize
16.36 KB

Needs a manual test to check if POTX can extract the strings.

Status: Needs review » Needs work

The last submitted patch, 5: payment_2085203_5.patch, failed testing.

Xano’s picture

Status: Needs work » Needs review
FileSize
915 bytes
16.35 KB

Still needs manual testing. Apparently potx-cli.php was removed from POTX.

Xano’s picture

FileSize
6.32 KB
19.07 KB

I manually confirmed that POTX can extract the strings. This patch makes sure the translatables in the plugin definition are wrapped in TranslationWrapper objects so they are portable across languages.

Status: Needs review » Needs work

The last submitted patch, 8: payment_2085203_8.patch, failed testing.

Status: Needs work » Needs review

Xano queued 8: payment_2085203_8.patch for re-testing.

Status: Needs review » Needs work

The last submitted patch, 8: payment_2085203_8.patch, failed testing.

Xano’s picture

Status: Needs work » Needs review
FileSize
608 bytes
19.1 KB
Xano’s picture

Status: Needs review » Fixed

  • Xano committed 24dcefe on 8.x-2.x
    Issue #2085203 by Xano: Added Use YAML discovery for payment statuses.
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.