You are here

public function ImportEntity::setCreatedTime in Content Synchronizer 8

Same name and namespace in other branches
  1. 8.2 src/Entity/ImportEntity.php \Drupal\content_synchronizer\Entity\ImportEntity::setCreatedTime()
  2. 3.x src/Entity/ImportEntity.php \Drupal\content_synchronizer\Entity\ImportEntity::setCreatedTime()

Sets the Import creation timestamp.

Parameters

int $timestamp: The Import creation timestamp.

Return value

\Drupal\content_synchronizer\Entity\ImportEntityInterface The called Import entity.

Overrides ImportEntityInterface::setCreatedTime

File

src/Entity/ImportEntity.php, line 131

Class

ImportEntity
Defines the Import entity.

Namespace

Drupal\content_synchronizer\Entity

Code

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