You are here

public function FlippingBook::setCreatedTime in Flipping Book 8

Sets the Flipping Book creation timestamp.

Parameters

int $timestamp: The Flipping Book creation timestamp.

Return value

\Drupal\flipping_book\Entity\FlippingBookInterface The called Flipping Book entity.

Overrides FlippingBookInterface::setCreatedTime

File

src/Entity/FlippingBook.php, line 126

Class

FlippingBook
Defines the Flipping Book entity.

Namespace

Drupal\flipping_book\Entity

Code

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