You are here

public function WorkflowScheduledTransition::addDefaultComment in Workflow 8

Create a default comment (on scheduled transition w/o comment).

File

src/Entity/WorkflowScheduledTransition.php, line 210

Class

WorkflowScheduledTransition
Implements a scheduled transition, as shown on Workflow form.

Namespace

Drupal\workflow\Entity

Code

public function addDefaultComment() {
  $this
    ->setComment($this
    ->t('Scheduled by user @uid.', [
    '@uid' => $this
      ->getOwnerId(),
  ]));
}