You are here

public function AgreementHandlerInterface::lastAgreed in Agreement 8.2

Same name and namespace in other branches
  1. 3.0.x src/AgreementHandlerInterface.php \Drupal\agreement\AgreementHandlerInterface::lastAgreed()

Get the last agreement for the user for the agreement.

Parameters

\Drupal\agreement\Entity\Agreement $agreement: The agreement to check if a user has agreed.

\Drupal\user\UserInterface $account: The user account to check.

Return value

int The timestamp that the user last agreed or -1 if never agreed.

1 method overrides AgreementHandlerInterface::lastAgreed()
AgreementHandler::lastAgreed in src/AgreementHandler.php
Get the last agreement for the user for the agreement.

File

src/AgreementHandlerInterface.php, line 38

Class

AgreementHandlerInterface
Agreement handler interface.

Namespace

Drupal\agreement

Code

public function lastAgreed(Agreement $agreement, UserInterface $account);