StateInterface
interface StateInterface (View source)
| internal | The StateInterface should only be used by Workflows and Content Moderation. |
An interface for state value objects.
Constants
| PLUGIN_FORM_KEY |
The key of the state plugin form. |
Methods
string
id()
Gets the state's ID.
string
label()
Gets the state's label.
int
weight()
Gets the state's weight.
bool
canTransitionTo($to_state_id)
Determines if the state can transition to the provided state ID.
getTransitionTo($to_state_id)
No description
getTransitions()
Gets all the possible transition objects for the state.
Details
string
id()
Gets the state's ID.
string
label()
Gets the state's label.
int
weight()
Gets the state's weight.
bool
canTransitionTo($to_state_id)
Determines if the state can transition to the provided state ID.
getTransitionTo($to_state_id)
No description
TransitionInterface[]
getTransitions()
Gets all the possible transition objects for the state.