public function RuleSchedule::setDate in RNG - Events and Registrations 8
Same name and namespace in other branches
- 8.2 src/Entity/RuleSchedule.php \Drupal\rng\Entity\RuleSchedule::setDate()
- 3.x src/Entity/RuleSchedule.php \Drupal\rng\Entity\RuleSchedule::setDate()
Set execution date.
Parameters
int $date: A unix timestamp for when to execute the rule.
Return value
\Drupal\rng\RuleScheduleInterface Returns rule schedule for chaining.
Overrides RuleScheduleInterface::setDate
File
- src/
Entity/ RuleSchedule.php, line 46
Class
- RuleSchedule
- Defines the rule scheduler entity.
Namespace
Drupal\rng\EntityCode
public function setDate($date) {
$this
->set('trigger_date', $date);
return $this;
}