public function WorkflowScheduledTransition::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:
Overrides WorkflowTransition::setValues
File
- src/
Entity/ WorkflowScheduledTransition.php, line 66
Class
- WorkflowScheduledTransition
- Implements a scheduled transition, as shown on Workflow form.
Namespace
Drupal\workflow\EntityCode
public function setValues($to_sid, $uid = NULL, $scheduled = NULL, $comment = '', $force_create = FALSE) {
parent::setValues($to_sid, $uid, $scheduled, $comment, $force_create);
}