public function SocialAuth::setCreatedTime in Social Auth 3.x
Same name and namespace in other branches
- 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\EntityCode
public function setCreatedTime($timestamp) {
$this
->set('created', $timestamp);
return $this;
}