public function RuleSchedule::setDate in RNG - Events and Registrations 3.x
Same name and namespace in other branches
- 8.2 src/Entity/RuleSchedule.php \Drupal\rng\Entity\RuleSchedule::setDate()
- 8 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\Entity\RuleScheduleInterface Returns rule schedule for chaining.
Overrides RuleScheduleInterface::setDate
File
- src/
Entity/ RuleSchedule.php, line 45
Class
- RuleSchedule
- Defines the rule scheduler entity.
Namespace
Drupal\rng\EntityCode
public function setDate($date) {
$this
->set('trigger_date', $date);
return $this;
}