You are here

public function Reference::setCreatedTime in Bibliography & Citation 8

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

Sets the Reference creation timestamp.

Parameters

int $timestamp: The Reference creation timestamp.

Return value

\Drupal\bibcite_entity\Entity\ReferenceInterface The called Reference entity.

Overrides ReferenceInterface::setCreatedTime

File

modules/bibcite_entity/src/Entity/Reference.php, line 131

Class

Reference
Defines the Reference entity.

Namespace

Drupal\bibcite_entity\Entity

Code

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