3 namespace Drupal\workflows;
6 * A transition value object that describes the transition between two states.
9 * The workflow system is currently experimental and should only be leveraged
10 * by experimental modules and development releases of contributed modules.
12 interface TransitionInterface {
15 * Gets the transition's ID.
18 * The transition's ID.
23 * Gets the transition's label.
26 * The transition's label.
28 public function label();
31 * Gets the transition's from states.
33 * @return \Drupal\workflows\StateInterface[]
34 * The transition's from states.
36 public function from();
39 * Gets the transition's to state.
41 * @return \Drupal\workflows\StateInterface
42 * The transition's to state.
47 * Gets the transition's weight.
50 * The transition's weight.
52 public function weight();