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

joachim created an issue. See original summary.

joachim’s picture

It looks like getTransitions is keyed by ID too, given this:

    return isset($this->transitions[$id]) ? $this->transitions[$id] : NULL;
joachim’s picture

Same for getStates().

ashishdalvi’s picture

Issue tags: +DrupalMumbaiSprintDec2017

We will work on this in Drupal Mumbai Monthly Code Sprint tomorrow.

ashishdalvi’s picture

Issue tags: -DrupalMumbaiSprintDec2017 +DrupalMumbaiCodeSprint
bojanz’s picture

Issue tags: -DrupalMumbaiCodeSprint

Let's do this.

  • bojanz committed 9fc4115 on 8.x-1.x
    Issue #2929131 by joachim, bojanz: docs for methods in WorkflowInterface...
bojanz’s picture

Status: Active » Fixed

Done.

Status: Fixed » Closed (fixed)

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