You are here

public function ScheduledTransition::getTransitionTime in Scheduled Transitions 8

Same name and namespace in other branches
  1. 2.x src/Entity/ScheduledTransition.php \Drupal\scheduled_transitions\Entity\ScheduledTransition::getTransitionTime()

Get the time this scheduled transition should execute.

Return value

int The scheduled transition time.

Overrides ScheduledTransitionInterface::getTransitionTime

File

src/Entity/ScheduledTransition.php, line 183

Class

ScheduledTransition
Scheduled Transition entity.

Namespace

Drupal\scheduled_transitions\Entity

Code

public function getTransitionTime() : int {
  return (int) $this
    ->get('transition_on')->value;
}