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.
Describe your bug or feature request.
Availability checkers can return availability result objects specifying a "reason" for why a given order item is unavailable.
I'm suggesting we allow returning a "code" as well.
The code could be an integer, or a "string", don't really want to be super strict about it...
For reference, also created a core issue to ensure violation codes are returned by JSON API (See #3274805: Update the UnprocessableHttpEntityExceptionNormalizer to support returning violation codes).
Also changed the "reason" param type to "mixed", since we accept strings and markup interfaces...
Comment | File | Size | Author |
---|---|---|---|
#2 | 3274829-2.patch | 3.1 KB | jsacksick |
|
Comments
Comment #2
jsacksick CreditAttribution: jsacksick at Centarro commentedComment #5
jsacksick CreditAttribution: jsacksick at Centarro commented