private function SchedulerContext::addFromTimeStamp in Lightning Workflow 8.2
Schedules a moderation state transition from a time stamp.
Parameters
string $state: The destination state of the transition.
int $ts: The time stamp when the transition should take place.
2 calls to SchedulerContext::addFromTimeStamp()
- SchedulerContext::addInSecondsAgo in modules/
lightning_scheduler/ tests/ contexts/ SchedulerContext.behat.inc - Schedules a transition to take place a certain number of seconds ago.
- SchedulerContext::addInSecondsFromNow in modules/
lightning_scheduler/ tests/ contexts/ SchedulerContext.behat.inc - Schedules a transition to take place a certain number of seconds from now.
File
- modules/
lightning_scheduler/ tests/ contexts/ SchedulerContext.behat.inc, line 102
Class
- SchedulerContext
- Contains step definitions for interacting with the Lightning Scheduler UI.
Namespace
Acquia\LightningExtension\ContextCode
private function addFromTimeStamp($state, $ts) {
return $this
->add($state, date('Y-m-d', $ts), date('H:i:s', $ts));
}