public function ScheduledTransition::setTransitionTime in Scheduled Transitions 8
Same name and namespace in other branches
- 2.x src/Entity/ScheduledTransition.php \Drupal\scheduled_transitions\Entity\ScheduledTransition::setTransitionTime()
Sets the transition time.
Parameters
int $time: The transition time.
Return value
static Returns entity for chaining.
Overrides ScheduledTransitionInterface::setTransitionTime
File
- src/
Entity/ ScheduledTransition.php, line 190
Class
- ScheduledTransition
- Scheduled Transition entity.
Namespace
Drupal\scheduled_transitions\EntityCode
public function setTransitionTime(int $time) {
$this
->set('transition_on', $time);
return $this;
}