You are here

public function GatsbyLogEntity::setCreatedTime in Gatsby Live Preview & Incremental Builds 8

Same name and namespace in other branches
  1. 2.0.x modules/gatsby_fastbuilds/src/Entity/GatsbyLogEntity.php \Drupal\gatsby_fastbuilds\Entity\GatsbyLogEntity::setCreatedTime()

Sets the Gatsby log entity creation timestamp.

Parameters

int $timestamp: The Gatsby log entity creation timestamp.

Return value

\Drupal\gatsby\Entity\GatsbyLogEntityInterface The called Gatsby log entity entity.

Overrides GatsbyLogEntityInterface::setCreatedTime

File

modules/gatsby_fastbuilds/src/Entity/GatsbyLogEntity.php, line 62

Class

GatsbyLogEntity
Defines the Gatsby log entity entity.

Namespace

Drupal\gatsby_fastbuilds\Entity

Code

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