You are here

public function RecentlyRead::setCreatedTime in Recently Read 8

Sets the Recently read creation timestamp.

Parameters

int $timestamp: The Recently read creation timestamp.

Return value

\Drupal\recently_read\Entity\RecentlyReadInterface The called Recently read entity.

Overrides RecentlyReadInterface::setCreatedTime

File

src/Entity/RecentlyRead.php, line 89

Class

RecentlyRead
Defines the Recently read entity.

Namespace

Drupal\recently_read\Entity

Code

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