You are here

public function Contributor::setCreatedTime in Bibliography & Citation 2.0.x

Same name and namespace in other branches
  1. 8 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;
}