You are here

public function StateItemInterface::applyTransitionById in State Machine 8

Applies a transition with the given ID, changing the current state.

Parameters

string $transition_id: The transition ID.

Throws

\InvalidArgumentException Thrown when no matching transition was found.

1 method overrides StateItemInterface::applyTransitionById()
StateItem::applyTransitionById in src/Plugin/Field/FieldType/StateItem.php
Applies a transition with the given ID, changing the current state.

File

src/Plugin/Field/FieldType/StateItemInterface.php, line 97

Class

StateItemInterface
Defines the interface for state field items.

Namespace

Drupal\state_machine\Plugin\Field\FieldType

Code

public function applyTransitionById($transition_id);