You are here

public function WorkflowTransition::getTimestampFormatted in Workflow 8

Returns the human-readable time.

Return value

string

Overrides WorkflowTransitionInterface::getTimestampFormatted

1 call to WorkflowTransition::getTimestampFormatted()
WorkflowScheduledTransition::save in src/Entity/WorkflowScheduledTransition.php
Saves a scheduled transition. If the transition is executed, save in history.

File

src/Entity/WorkflowTransition.php, line 785

Class

WorkflowTransition
Implements an actual, executed, Transition.

Namespace

Drupal\workflow\Entity

Code

public function getTimestampFormatted() {
  $timestamp = $this
    ->getTimestamp();
  return \Drupal::service('date.formatter')
    ->format($timestamp);
}