You are here

public function WorkflowTransitionInterface::setValues in Workflow 8

Helper function for __construct. Used for all children of WorkflowTransition (aka WorkflowScheduledTransition)

Usage: $transition = WorkflowTransition::create([$current_sid, 'field_name' => $field_name]); $transition->setTargetEntity($entity); $transition->setValues($new_sid, $user->id(), REQUEST_TIME, $comment);

Parameters

string $to_sid:

int $uid:

int $timestamp:

string $comment:

bool $force_create:

1 method overrides WorkflowTransitionInterface::setValues()
WorkflowTransition::setValues in src/Entity/WorkflowTransition.php
Helper function for __construct. Used for all children of WorkflowTransition (aka WorkflowScheduledTransition)

File

src/Entity/WorkflowTransitionInterface.php, line 32

Class

WorkflowTransitionInterface
Defines a common interface for Workflow*Transition* objects.

Namespace

Drupal\workflow\Entity

Code

public function setValues($to_sid, $uid = NULL, $timestamp = NULL, $comment = '', $force_create = FALSE);