3 namespace Drupal\workflows;
6 * A transition value object that describes the transition between two states.
9 * The TransitionInterface should only be used by Workflows and Content
12 * @todo Revisit the need for this in https://www.drupal.org/node/2902309.
14 interface TransitionInterface {
17 * The key of the transition plugin form.
19 const PLUGIN_FORM_KEY = 'transition';
22 * Gets the transition's ID.
25 * The transition's ID.
30 * Gets the transition's label.
33 * The transition's label.
35 public function label();
38 * Gets the transition's from states.
40 * @return \Drupal\workflows\StateInterface[]
41 * The transition's from states.
43 public function from();
46 * Gets the transition's to state.
48 * @return \Drupal\workflows\StateInterface
49 * The transition's to state.
54 * Gets the transition's weight.
57 * The transition's weight.
59 public function weight();