You are here

public function SocialAuth::setCreatedTime in Social Auth 3.x

Same name and namespace in other branches
  1. 8.2 src/Entity/SocialAuth.php \Drupal\social_auth\Entity\SocialAuth::setCreatedTime()

Updates the created time field.

Parameters

int $timestamp: The social auth creation timestamp.

Return value

\Drupal\social_auth\Entity\SocialAuth Drupal Social Auth Entity.

File

src/Entity/SocialAuth.php, line 89

Class

SocialAuth
Defines the Social Auth entity.

Namespace

Drupal\social_auth\Entity

Code

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