You are here

public function Keyword::setCreatedTime in Bibliography & Citation 8

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

Sets the Keyword creation timestamp.

Parameters

int $timestamp: The Keyword creation timestamp.

Return value

\Drupal\bibcite_entity\Entity\KeywordInterface The called Keyword entity.

Overrides KeywordInterface::setCreatedTime

File

modules/bibcite_entity/src/Entity/Keyword.php, line 85

Class

Keyword
Defines the Keyword entity.

Namespace

Drupal\bibcite_entity\Entity

Code

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