public function WorkflowScheduledTransition::addDefaultComment in Workflow 7.2
Same name and namespace in other branches
- 7 includes/Entity/WorkflowScheduledTransition.php \WorkflowScheduledTransition::addDefaultComment()
If a scheduled transition has no comment, a default comment is added before executing it.
File
- includes/
Entity/ WorkflowScheduledTransition.php, line 154 - Contains workflow\includes\Entity\WorkflowScheduledTransition.
Class
- WorkflowScheduledTransition
- Implements a scheduled transition, as shown on Workflow form.
Code
public function addDefaultComment() {
$this->comment = t('Scheduled by user @uid.', array(
'@uid' => $this->uid,
));
}