public function WorkflowTransition::setComment in Workflow 8
Get the comment of the Transition.
Parameters
$value: The new comment.
Return value
Overrides WorkflowTransitionInterface::setComment
3 calls to WorkflowTransition::setComment()
- WorkflowScheduledTransition::addDefaultComment in src/
Entity/ WorkflowScheduledTransition.php - Create a default comment (on scheduled transition w/o comment).
- WorkflowTransition::execute in src/
Entity/ WorkflowTransition.php - Execute a transition (change state of an entity).
- WorkflowTransition::setValues in src/
Entity/ WorkflowTransition.php - Helper function for __construct. Used for all children of WorkflowTransition (aka WorkflowScheduledTransition)
File
- src/
Entity/ WorkflowTransition.php, line 770
Class
- WorkflowTransition
- Implements an actual, executed, Transition.
Namespace
Drupal\workflow\EntityCode
public function setComment($value) {
$this
->set('comment', $value);
return $this;
}