You are here

public function Schedule::setCreatedTime in Business Rules 8

Same name and namespace in other branches
  1. 2.x 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 166

Class

Schedule
Defines the Schedule entity.

Namespace

Drupal\business_rules\Entity

Code

public function setCreatedTime($timestamp) {
  $this
    ->set('created', $timestamp);
  return $this;
}