public function Schedule::setCreatedTime in Business Rules 2.x
Same name and namespace in other branches
- 8 src/Entity/Schedule.php \Drupal\business_rules\Entity\Schedule::setCreatedTime()
Sets the Schedule creation timestamp.
Parameters
int $timestamp: The Schedule creation timestamp.
Return value
\Drupal\business_rules\Entity\ScheduleInterface The called Schedule entity.
Overrides ScheduleInterface::setCreatedTime
1 call to Schedule::setCreatedTime()
- Schedule::preSave in src/
Entity/ Schedule.php - Acts on an entity before the presave hook is invoked.
File
- src/
Entity/ Schedule.php, line 170
Class
- Schedule
- Defines the Schedule entity.
Namespace
Drupal\business_rules\EntityCode
public function setCreatedTime($timestamp) {
$this
->set('created', $timestamp);
return $this;
}