You are here

public function TeamInvitation::isExpired in Apigee Edge 8

Returns TRUE if the invitation is expired.

Return value

bool TRUE if expired. FALSE otherwise.

Overrides TeamInvitationInterface::isExpired

File

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

Class

TeamInvitation
Defines the team invitation entity.

Namespace

Drupal\apigee_edge_teams\Entity

Code

public function isExpired() : bool {
  return $this
    ->getStatus() === TeamInvitationInterface::STATUS_EXPIRED || $this
    ->getExpiryTime() < \Drupal::time()
    ->getCurrentTime();
}