interface TransitionInterface (View source)

internal  The TransitionInterface should only be used by Workflows and Content Moderation.
 

A transition value object that describes the transition between two states.

Revisit the need for this in https://www.drupal.org/node/2902309.

Constants

PLUGIN_FORM_KEY

The key of the transition plugin form.

DIRECTION_FROM

The transition direction from.

DIRECTION_TO

The transition direction to.

Methods

string
id()

Gets the transition's ID.

string
label()

Gets the transition's label.

from()

Gets the transition's from states.

to()

Gets the transition's to state.

string
weight()

Gets the transition's weight.

Details

string id()

Gets the transition's ID.

Return Value

string

The transition's ID.

string label()

Gets the transition's label.

Return Value

string

The transition's label.

StateInterface[] from()

Gets the transition's from states.

Return Value

StateInterface[]

The transition's from states.

StateInterface to()

Gets the transition's to state.

Return Value

StateInterface

The transition's to state.

string weight()

Gets the transition's weight.

Return Value

string

The transition's weight.