You are here

public function Synonym::setCreatedTime in Search API Synonym 8

Sets the Synonym creation timestamp.

Parameters

int $timestamp: The Synonym creation timestamp.

Return value

\Drupal\search_api_synonym\SynonymInterface The called Synonym entity.

Overrides SynonymInterface::setCreatedTime

File

src/Entity/Synonym.php, line 126

Class

Synonym
Defines the Synonym entity.

Namespace

Drupal\search_api_synonym\Entity

Code

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