public function ScheduledTransitionInterface::setState in Scheduled Transitions 2.x
Set the new workflow and state for this scheduled transition.
Parameters
\Drupal\workflows\WorkflowInterface $workflow: The workflow.
string $state: The state ID.
Return value
static Returns entity for chaining.
1 method overrides ScheduledTransitionInterface::setState()
- ScheduledTransition::setState in src/
Entity/ ScheduledTransition.php - Set the new workflow and state for this scheduled transition.
File
- src/
Entity/ ScheduledTransitionInterface.php, line 145
Class
- ScheduledTransitionInterface
- Interface for Scheduled Transitions.
Namespace
Drupal\scheduled_transitions\EntityCode
public function setState(WorkflowInterface $workflow, string $state);