You are here

public function AccessToken::setCreatedTime in Access unpublished 8

Sets the Access token creation timestamp.

Parameters

int $timestamp: The Access token creation timestamp.

Return value

\Drupal\access_unpublished\AccessTokenInterface The called Access token entity.

Overrides AccessTokenInterface::setCreatedTime

File

src/Entity/AccessToken.php, line 83

Class

AccessToken
Defines the Access token entity.

Namespace

Drupal\access_unpublished\Entity

Code

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