You are here

public function Contributor::setCreatedTime in Bibliography & Citation 8

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

Sets the Contributor creation timestamp.

Parameters

int $timestamp: The Contributor creation timestamp.

Return value

\Drupal\bibcite_entity\Entity\ContributorInterface The called Contributor entity.

Overrides ContributorInterface::setCreatedTime

File

modules/bibcite_entity/src/Entity/Contributor.php, line 212

Class

Contributor
Defines the Contributor entity.

Namespace

Drupal\bibcite_entity\Entity

Code

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