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.
The docs for these methods need to state what the return arrays are keyed by:
getPossibleTransitions
getAllowedTransitions
getTransitions
getStates
Looking at the code, the first two are keyed by ID. The second two I can't immediately tell.
Comments
Comment #2
joachim CreditAttribution: joachim commentedIt looks like getTransitions is keyed by ID too, given this:
Comment #3
joachim CreditAttribution: joachim commentedSame for getStates().
Comment #4
ashishdalviWe will work on this in Drupal Mumbai Monthly Code Sprint tomorrow.
Comment #5
ashishdalviComment #6
bojanz CreditAttribution: bojanz at Centarro commentedLet's do this.
Comment #8
bojanz CreditAttribution: bojanz at Centarro commentedDone.