You are here

public function OgMembership::setCreatedTime in Organic groups 8

Sets the membership creation timestamp.

Parameters

int $timestamp: The membership creation timestamp.

Return value

\Drupal\og\OgMembershipInterface The updated OG Membership object.

Overrides OgMembershipInterface::setCreatedTime

File

src/Entity/OgMembership.php, line 95

Class

OgMembership
The membership entity that connects a group and a user.

Namespace

Drupal\og\Entity

Code

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