You are here

public function TeamInvitation::setExpiryTime in Apigee Edge 8

Sets the expiry time of the invitation.

Parameters

int $expiry_time: The expiry time.

Return value

\Drupal\apigee_edge_teams\Entity\TeamInvitationInterface The invitation.

Overrides TeamInvitationInterface::setExpiryTime

1 call to TeamInvitation::setExpiryTime()
TeamInvitation::preSave in modules/apigee_edge_teams/src/Entity/TeamInvitation.php
Acts on an entity before the presave hook is invoked.

File

modules/apigee_edge_teams/src/Entity/TeamInvitation.php, line 229

Class

TeamInvitation
Defines the team invitation entity.

Namespace

Drupal\apigee_edge_teams\Entity

Code

public function setExpiryTime(int $expiry_time) : TeamInvitationInterface {
  $this
    ->set('expiry', $expiry_time);
  return $this;
}